]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fixed bug where swapped timer wouldn't show anything in non round-based modes
authorz411 <z411@omaera.org>
Sun, 27 Feb 2022 20:27:36 +0000 (17:27 -0300)
committerz411 <z411@omaera.org>
Sun, 27 Feb 2022 20:27:36 +0000 (17:27 -0300)
qcsrc/client/hud/panel/timer.qc

index 1b4dc20707704691c510f0b39ace7c8e7d9d6379..94028d864f7863a95d50c8e637d8bbe1cc96e9d9 100644 (file)
@@ -53,7 +53,7 @@ void HUD_Timer()
        vector timer_size, subtext_size, subtimer_size;
        vector timer_color = '1 1 1';
        vector subtimer_color = '1 1 1';
-       bool swap = (autocvar_hud_panel_timer_secondary == 2);
+       bool swap = (autocvar_hud_panel_timer_secondary == 2 && STAT(ROUNDSTARTTIME));
 
        // Calculate timelimit
        if(warmup_stage)