fixed so the number of players in the server info is correct

This commit is contained in:
Magnus Auvinen 2009-01-11 14:48:38 +00:00
parent e60236e304
commit f29276e8d5
2 changed files with 3 additions and 2 deletions

View file

@ -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);

View file

@ -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)