From 0af86937ced22810ad507e8bbe4160bbe7cd6914 Mon Sep 17 00:00:00 2001 From: z411 Date: Thu, 1 Apr 2021 21:12:14 -0300 Subject: [PATCH] Avoid counting down while in timeout --- qcsrc/client/announcer.qc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/qcsrc/client/announcer.qc b/qcsrc/client/announcer.qc index d6f2f5065..28b5c1b1f 100644 --- a/qcsrc/client/announcer.qc +++ b/qcsrc/client/announcer.qc @@ -70,10 +70,12 @@ void Announcer_Countdown(entity this) // counting down to rounds if(rounds) { - Local_Notification(MSG_CENTER, CENTER_COUNTDOWN_ROUNDSTART, countdown_rounded); - Notification annce_num = Announcer_PickNumber(CNT_ROUNDSTART, countdown_rounded); - if(annce_num != NULL) - Local_Notification(MSG_ANNCE, annce_num); + if (timeout_status != TIMEOUT_ACTIVE) { + Local_Notification(MSG_CENTER, CENTER_COUNTDOWN_ROUNDSTART, countdown_rounded); + Notification annce_num = Announcer_PickNumber(CNT_ROUNDSTART, countdown_rounded); + if(annce_num != NULL) + Local_Notification(MSG_ANNCE, annce_num); + } this.nextthink = (roundstarttime - (countdown - 1)); } else -- 2.39.2