about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
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);
 	
 	{