From 6dafb36bfa1118e3793997286d1cd1529a6e0151 Mon Sep 17 00:00:00 2001 From: z411 Date: Fri, 1 Apr 2022 19:25:30 -0300 Subject: [PATCH] Clear title when starting a round based match --- qcsrc/client/announcer.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/client/announcer.qc b/qcsrc/client/announcer.qc index 6a211246f..5a004e04f 100644 --- a/qcsrc/client/announcer.qc +++ b/qcsrc/client/announcer.qc @@ -20,6 +20,7 @@ string AnnouncerOption() entity announcer_countdown; +bool prev_inround; void Announcer_Countdown(entity this) { float starttime = STAT(GAMESTARTTIME); @@ -50,6 +51,7 @@ void Announcer_Countdown(entity this) { if(inround) { + if(!prev_inround) centerprint_ClearTitle(); // clear title if we just started the match Local_Notification(MSG_CENTER, CENTER_COUNTDOWN_ROUNDSTART, STAT(ROUNDS_PLAYED) + 1, countdown_rounded); Notification annce_num = Announcer_PickNumber(CNT_ROUNDSTART, countdown_rounded); if(annce_num != NULL) @@ -65,6 +67,8 @@ void Announcer_Countdown(entity this) this.nextthink = (starttime - (countdown - 1)); } } + + prev_inround = inround; } /** -- 2.39.2