]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sbar.c
removed some unnecessary code in CL_TimeRefresh_f
[xonotic/darkplaces.git] / sbar.c
diff --git a/sbar.c b/sbar.c
index 95fb089d8c98271c1cfa418034d2d009058f4578..141b3634df2a7ce347bb7675d0728b13d94a967a 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -1002,7 +1002,7 @@ void Sbar_ShowFPS(void)
                static double framerate = 0;
                static int framecount = 0;
                double newtime;
-               newtime = Sys_DoubleTime();
+               newtime = realtime;
                if (newtime >= nexttime)
                {
                        framerate = framecount / (newtime - lasttime);
@@ -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);