Fix HUD timer position when showing time left
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 19 Apr 2011 15:40:57 +0000 (18:40 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 19 Apr 2011 15:40:57 +0000 (18:40 +0300)
data/qcsrc/client/sbar.qc

index 8dde732f0e8eadeee13f976bba0b2c1fb80613c0..d856adabb9a7c5b87f803ef18492ed297d71b45a 100644 (file)
@@ -1945,13 +1945,13 @@ void Sbar_Timer()
                minutes = minutesLeft;\r
                seconds = secondsLeft;\r
                if (minutes == 0)\r
-                       bgpos_x = topright_x - (58 + 7 + 12) * scale;\r
+                       bgpos_x = topright_x - (46 + 17 + 12) * scale;\r
                else if (minutes < 10) // nudge the timer background left if more digits are drawn\r
-                       bgpos_x = topright_x - (66 + 17 + 12) * scale;\r
+                       bgpos_x = topright_x - (54 + 17 + 12) * scale;\r
                else if (minutes < 100)\r
-                       bgpos_x = topright_x - (74 + 17 + 12) * scale;\r
+                       bgpos_x = topright_x - (62 + 17 + 12) * scale;\r
                else\r
-                       bgpos_x = topright_x - (82 + 17 + 12) * scale;\r
+                       bgpos_x = topright_x - (70 + 17 + 12) * scale;\r
                bgpos_y = 0;\r
                bgpos_z = 0;\r
        }\r