From 0a48454a554f8aa221a54b694b32b3004b9f6fd7 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 31 Aug 2008 14:37:35 +0000 Subject: removed the GAMETYPE_ enum --- src/game/client/components/hud.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game/client/components/hud.cpp') 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]) -- cgit 1.4.1