From: havoc Date: Sat, 7 Apr 2007 21:29:03 +0000 (+0000) Subject: patch from div0 to fix nexuiz ctf flag icon code so it works with vid_conwidth values... X-Git-Tag: xonotic-v0.1.0preview~3347 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=149395db8569bbb9af41ab3e2ab4860511681fa9;p=xonotic%2Fdarkplaces.git patch from div0 to fix nexuiz ctf flag icon code so it works with vid_conwidth values other than 640 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7074 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sbar.c b/sbar.c index c8ebbd7b..141b3634 100644 --- 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);