From: sajt Date: Sat, 26 Aug 2006 08:41:31 +0000 (+0000) Subject: Fix for people with proper compilers :) X-Git-Tag: xonotic-v0.1.0preview~3817 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=eecce6c5fdf442143d7a628826d3e99923981a86;p=xonotic%2Fdarkplaces.git Fix for people with proper compilers :) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6569 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sbar.c b/sbar.c index 37a70452..81b5d85b 100644 --- a/sbar.c +++ b/sbar.c @@ -1119,6 +1119,7 @@ void Sbar_Draw (void) int i; double time; float fade; + int redflag, blueflag; // we have a max time 2s (min time = 0) if ((time = cl.time - cl.weapontime) < 2) @@ -1142,10 +1143,10 @@ void Sbar_Draw (void) Sbar_DrawAlphaPic (0, 0, sb_sbar_minimal, sbar_alpha_fg.value); // flag icons - int redflag = ((cl.stats[STAT_ITEMS]>>15) & 3); + redflag = ((cl.stats[STAT_ITEMS]>>15) & 3); if (redflag) Sbar_DrawPic (10, -85, sb_items[redflag+10]); - int blueflag = ((cl.stats[STAT_ITEMS]>>17) & 3); + blueflag = ((cl.stats[STAT_ITEMS]>>17) & 3); if (blueflag) Sbar_DrawPic (10, -145, sb_items[blueflag+14]);