]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fixed timer in unlimited warmup
authorz411 <z411@omaera.org>
Thu, 24 Mar 2022 04:24:39 +0000 (01:24 -0300)
committerz411 <z411@omaera.org>
Thu, 24 Mar 2022 04:24:39 +0000 (01:24 -0300)
qcsrc/client/hud/panel/timer.qc

index cdf635f2273063bce61e865a5add4bec653ef33d..68e7312c7a5ba881ee1f45a000e91f64219ea7fb 100644 (file)
@@ -91,7 +91,7 @@ void HUD_Timer()
                timer_color = HUD_Timer_Color(timeleft);
 
        // Timer text
-       if (autocvar_hud_panel_timer_increment || timelimit == 0)
+       if (autocvar_hud_panel_timer_increment || timelimit <= 0)
                timer = seconds_tostring(HUD_Timer_TimeElapsed(curtime, STAT(GAMESTARTTIME)));
        else
                timer = seconds_tostring(timeleft);