about summary refs log tree commit diff
path: root/src/game/client/components/hud.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components/hud.cpp')
-rw-r--r--src/game/client/components/hud.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/client/components/hud.cpp b/src/game/client/components/hud.cpp
index 5349401b..762ed1fb 100644
--- a/src/game/client/components/hud.cpp
+++ b/src/game/client/components/hud.cpp
@@ -31,7 +31,6 @@ void HUD::render_goals()
 	// render_scorehud
 	// render_warmuptimer
 	
-	int gametype = gameclient.snap.gameobj->gametype;
 	int gameflags = gameclient.snap.gameobj->flags;
 	
 	float whole = 300*gfx_screenaspect();
@@ -84,7 +83,7 @@ void HUD::render_goals()
 			str_format(buf, sizeof(buf), "%d", t?gameclient.snap.gameobj->teamscore_blue:gameclient.snap.gameobj->teamscore_red);
 			float w = gfx_text_width(0, 14, buf, -1);
 			
-			if(gametype == GAMETYPE_CTF)
+			if(gameflags&GAMEFLAG_FLAGS)
 			{
 				gfx_text(0, whole-20-w/2+5, 300-40-15+t*20, 14, buf, -1);
 				if(gameclient.snap.flags[t])