]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Support multi-stage warmups in Announcer_Time()
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 13 Dec 2022 05:14:43 +0000 (15:14 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 6 Jan 2023 07:16:35 +0000 (17:16 +1000)
qcsrc/client/announcer.qc

index 70834c509b3c32dcf3d4393f279d0e3386c811c3..077a1c6d012ecb97f68f95fc15f00cad0d06ff9a 100644 (file)
@@ -214,7 +214,7 @@ void Announcer_Time()
        {
                float warmup_timelimit = STAT(WARMUP_TIMELIMIT);
                if(warmup_timelimit > 0)
-                       timeleft = max(0, warmup_timelimit - time);
+                       timeleft = max(0, warmup_timelimit + starttime - time);
                else
                        timeleft = 0;
        }