From b6ded3bab90d57c3cf45055c268c8daef1cff74f Mon Sep 17 00:00:00 2001 From: z411 Date: Thu, 18 Nov 2021 14:07:08 -0300 Subject: [PATCH] Set an upper bound for the timer (game's timelimit) --- qcsrc/client/hud/panel/timer.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/client/hud/panel/timer.qc b/qcsrc/client/hud/panel/timer.qc index 0cdfefa78..26490d403 100644 --- a/qcsrc/client/hud/panel/timer.qc +++ b/qcsrc/client/hud/panel/timer.qc @@ -42,6 +42,7 @@ void HUD_Timer() timelimit = STAT(TIMELIMIT); timeleft = max(0, timelimit * 60 + STAT(GAMESTARTTIME) - time); + timeleft = min(timeleft, timelimit * 60); timeleft = ceil(timeleft); minutesLeft = floor(timeleft / 60); -- 2.39.2