]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fix for people with proper compilers :)
authorsajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 26 Aug 2006 08:41:31 +0000 (08:41 +0000)
committersajt <sajt@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 26 Aug 2006 08:41:31 +0000 (08:41 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6569 d7cf8633-e32d-0410-b094-e92efae38249

sbar.c

diff --git a/sbar.c b/sbar.c
index 37a70452a3a2b069472e431916ea4ffe18263790..81b5d85b2bb276f0a50a1615893d94935e5ce35d 100644 (file)
--- 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]);