From e6739e0e3e94f4abd67b17f82a27a378c340af30 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 4 Aug 2007 19:04:31 +0000 Subject: fixed crash bug --- src/game/client/game_client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game') 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() } } } + * */ } } -- cgit 1.4.1