]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make the timer how we're used to
authorz411 <z411@omaera.org>
Thu, 1 Jun 2023 03:51:18 +0000 (23:51 -0400)
committerz411 <z411@omaera.org>
Thu, 1 Jun 2023 03:51:18 +0000 (23:51 -0400)
qcsrc/client/hud/panel/timer.qc

index ef724ebcf5a71657c5b197a7935bcf2695688991..003f1c4b736662ff8a9754be77bfeda5881e2b39 100644 (file)
@@ -102,7 +102,9 @@ void HUD_Timer()
        }
 
        // Timer text
-       if (autocvar_hud_panel_timer_increment || timelimit <= 0)
+       if (timelimit == -1)
+               timer = (autocvar_hud_panel_timer_increment ? 0 : STAT(TIMELIMIT) * 60);
+       else if (autocvar_hud_panel_timer_increment || timelimit <= 0)
                timer = HUD_Timer_TimeElapsed(curtime, STAT(GAMESTARTTIME));
        else
                timer = timeleft;
@@ -147,18 +149,7 @@ void HUD_Timer()
        int overtimes = STAT(OVERTIMES);
 
        if(warmup_stage || autocvar__hud_configure)
-       {
-               if (STAT(WARMUP_TIMELIMIT) > 0)
-                       subtext = _("Warmup");
-               else
-               {
-                       Scoreboard_UpdatePlayerTeams(); // ensure numplayers is current
-                       if (srv_minplayers - numplayers > 0)
-                               subtext = _("Warmup: too few players");
-                       else
-                               subtext = _("Warmup: no time limit");
-               }
-       }
+               subtext = _("Warmup");
        else if(STAT(TIMEOUT_STATUS) == 2)
                subtext = _("Timeout");
        else if(overtimes >= 2)