about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-08-04 19:04:31 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-08-04 19:04:31 +0000
commite6739e0e3e94f4abd67b17f82a27a378c340af30 (patch)
tree9e43ff264ba5dcbf3f95962b8d541adf39680603
parent774d26249fc08190aa25d932f82aa1a6c42f5355 (diff)
downloadzcatch-e6739e0e3e94f4abd67b17f82a27a378c340af30.tar.gz
zcatch-e6739e0e3e94f4abd67b17f82a27a378c340af30.zip
fixed crash bug
-rw-r--r--src/game/client/game_client.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp
index 8fdf9ade..f5ae23ec 100644
--- a/src/game/client/game_client.cpp
+++ b/src/game/client/game_client.cpp
@@ -1635,7 +1635,7 @@ void render_game()
 	{
 		gfx_mapscreen(0, 0, width, height);
 
-		if (gameobj->gametype == GAMETYPE_DM)
+		if (gameobj && gameobj->gametype == GAMETYPE_DM)
 		{
 			// Normal deathmatch
 
@@ -1736,6 +1736,7 @@ void render_game()
 				gfx_pretty_text(x+40, y, 32, buf);
 			}			
 		}
+		/*
 		else if (gameobj->gametype == GAMETYPE_TDM)
 		{
 			// Team deathmatch
@@ -1826,6 +1827,7 @@ void render_game()
 				}
 			}
 		}
+		* */
 	}
 }