From: z411 Date: Fri, 1 Apr 2022 22:25:30 +0000 (-0300) Subject: Clear title when starting a round based match X-Git-Tag: xonotic-v0.8.5~94^2~6 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=6dafb36bfa1118e3793997286d1cd1529a6e0151;p=xonotic%2Fxonotic-data.pk3dir.git Clear title when starting a round based match --- 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; } /**