mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed so the number of players in the server info is correct
This commit is contained in:
parent
e60236e304
commit
f29276e8d5
|
@ -248,7 +248,7 @@ void MENUS::render_serverinfo(RECT main_view)
|
|||
current_server_info.map,
|
||||
gameclient.snap.gameobj->score_limit,
|
||||
gameclient.snap.gameobj->time_limit,
|
||||
gameclient.snap.team_size[0]+gameclient.snap.team_size[1],
|
||||
gameclient.snap.num_players,
|
||||
current_server_info.max_players
|
||||
);
|
||||
gfx_text(0, gameinfo.x+x, gameinfo.y+y, 20, buf, 250);
|
||||
|
|
|
@ -588,7 +588,8 @@ void GAMECLIENT::on_snapshot()
|
|||
clients[cid].skin_info.color_feet = vec4(1,1,1,1);
|
||||
}
|
||||
|
||||
clients[cid].update_render_info();
|
||||
clients[cid].update_render_info();
|
||||
gameclient.snap.num_players++;
|
||||
|
||||
}
|
||||
else if(item.type == NETOBJTYPE_PLAYER_INFO)
|
||||
|
|
Loading…
Reference in a new issue