]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/sbar.qc
Fix HUD timer position when showing time left
[voretournament/voretournament.git] / 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