From: z411 Date: Fri, 25 Mar 2022 04:22:44 +0000 (-0300) Subject: Make timer stuck in infinite warmup X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2Fz411%2Ftimer_warmup;p=xonotic%2Fxonotic-data.pk3dir.git Make timer stuck in infinite warmup --- diff --git a/qcsrc/client/hud/panel/timer.qc b/qcsrc/client/hud/panel/timer.qc index 68e7312c7..85527d5d6 100644 --- a/qcsrc/client/hud/panel/timer.qc +++ b/qcsrc/client/hud/panel/timer.qc @@ -91,7 +91,12 @@ void HUD_Timer() timer_color = HUD_Timer_Color(timeleft); // Timer text - if (autocvar_hud_panel_timer_increment || timelimit <= 0) + if (timelimit == -1) // Infinite warmup + if (autocvar_hud_panel_timer_increment) + timer = seconds_tostring(0); + else + timer = seconds_tostring(STAT(TIMELIMIT) * 60); + else if (autocvar_hud_panel_timer_increment || timelimit == 0) timer = seconds_tostring(HUD_Timer_TimeElapsed(curtime, STAT(GAMESTARTTIME))); else timer = seconds_tostring(timeleft);