about summary refs log tree commit diff
path: root/src/game/client/components
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-08-31 13:36:30 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-08-31 13:36:30 +0000
commit5198d6bf016014dd85c96ebd97147fa3f24bcc7a (patch)
treef1782af9828c727c5292fbfdc5904226b218865b /src/game/client/components
parent132da5396b83405801e3271094359e8d5b88d5ab (diff)
downloadzcatch-5198d6bf016014dd85c96ebd97147fa3f24bcc7a.tar.gz
zcatch-5198d6bf016014dd85c96ebd97147fa3f24bcc7a.zip
fixed some crashes and added kill and team console commands
Diffstat (limited to 'src/game/client/components')
-rw-r--r--src/game/client/components/hud.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/client/components/hud.cpp b/src/game/client/components/hud.cpp
index 8344754e..5349401b 100644
--- a/src/game/client/components/hud.cpp
+++ b/src/game/client/components/hud.cpp
@@ -186,6 +186,9 @@ void HUD::render_tunewarning()
 
 void HUD::render_cursor()
 {
+	if(!gameclient.snap.local_character)
+		return;
+		
 	mapscreen_to_group(gameclient.camera->center.x, gameclient.camera->center.y, layers_game_group());
 	gfx_texture_set(data->images[IMAGE_GAME].id);
 	gfx_quads_begin();