about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-10-20 23:20:28 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-10-20 23:20:28 +0000
commit15217d84585fd6aaacfc75ac36961398bf74e693 (patch)
tree44718c2a87feadc212744bf85f0aab5b49c20890 /src/game/client
parentda473cf614cb49ddf15f7dde9cbaeb46aa86babf (diff)
downloadzcatch-15217d84585fd6aaacfc75ac36961398bf74e693.tar.gz
zcatch-15217d84585fd6aaacfc75ac36961398bf74e693.zip
fixed so that you can't vote on maps that arn't in the map list. fixed crash bug in the server info menu page
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/components/menus_ingame.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/client/components/menus_ingame.cpp b/src/game/client/components/menus_ingame.cpp
index 29067e41..8b28b47e 100644
--- a/src/game/client/components/menus_ingame.cpp
+++ b/src/game/client/components/menus_ingame.cpp
@@ -148,6 +148,9 @@ void MENUS::render_serverinfo(RECT main_view)
 	SERVER_INFO current_server_info;
 	client_serverinfo(&current_server_info);
 	
+	if(!gameclient.snap.local_info)
+		return;
+	
 	// count players for server info-box
 	int num_players = 0;
 	for(int i = 0; i < snap_num_items(SNAP_CURRENT); i++)
@@ -202,6 +205,7 @@ void MENUS::render_serverinfo(RECT main_view)
 		current_server_info.version,
 		current_server_info.flags&1 ? "Yes" : "No"
 	);
+	
 	gfx_text(0, serverinfo.x+x, serverinfo.y+y, 20, buf, 250);
 	
 	{