From: MirceaKitsune Date: Tue, 19 Apr 2011 15:40:57 +0000 (+0300) Subject: Fix HUD timer position when showing time left X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ceea9aed4596cc127c93a7fc973261b0e684b0e4;p=voretournament%2Fvoretournament.git Fix HUD timer position when showing time left --- diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 8dde732f..d856adab 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -1945,13 +1945,13 @@ void Sbar_Timer() minutes = minutesLeft; seconds = secondsLeft; if (minutes == 0) - bgpos_x = topright_x - (58 + 7 + 12) * scale; + bgpos_x = topright_x - (46 + 17 + 12) * scale; else if (minutes < 10) // nudge the timer background left if more digits are drawn - bgpos_x = topright_x - (66 + 17 + 12) * scale; + bgpos_x = topright_x - (54 + 17 + 12) * scale; else if (minutes < 100) - bgpos_x = topright_x - (74 + 17 + 12) * scale; + bgpos_x = topright_x - (62 + 17 + 12) * scale; else - bgpos_x = topright_x - (82 + 17 + 12) * scale; + bgpos_x = topright_x - (70 + 17 + 12) * scale; bgpos_y = 0; bgpos_z = 0; }