patch from div0 to fix nexuiz ctf flag icon code so it works with vid_conwidth values...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 7 Apr 2007 21:29:03 +0000 (21:29 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 7 Apr 2007 21:29:03 +0000 (21:29 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7074 d7cf8633-e32d-0410-b094-e92efae38249

sbar.c

diff --git a/sbar.c b/sbar.c
index c8ebbd7..141b363 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -1185,10 +1185,10 @@ void Sbar_Draw (void)
                                // flag icons
                                redflag = ((cl.stats[STAT_ITEMS]>>15) & 3);
                                if (redflag)
-                                       Sbar_DrawPic (10, -85, sb_items[redflag+10]);
+                                       Sbar_DrawPic (10 - sbar_x, -85, sb_items[redflag+10]);
                                blueflag = ((cl.stats[STAT_ITEMS]>>17) & 3);
                                if (blueflag)
-                                       Sbar_DrawPic (10, -145, sb_items[blueflag+14]);
+                                       Sbar_DrawPic (10 - sbar_x, -145, sb_items[blueflag+14]);
 
                                // armor
                                Sbar_DrawXNum ((340-3*24), 12, cl.stats[STAT_ARMOR], 3, 24, 0.6,0.7,0.8,1,0);