From f32bb49514d2fb6676134c8720dc8d6a7a9fd4bf Mon Sep 17 00:00:00 2001 From: z411 Date: Wed, 5 Jan 2022 23:47:26 -0300 Subject: [PATCH] Fix round handler and center title --- qcsrc/client/announcer.qc | 3 ++- qcsrc/client/hud/panel/centerprint.qc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/announcer.qc b/qcsrc/client/announcer.qc index 9f4593230..41c8ecf5b 100644 --- a/qcsrc/client/announcer.qc +++ b/qcsrc/client/announcer.qc @@ -32,6 +32,7 @@ void Announcer_Countdown(entity this) Local_Notification(MSG_CENTER, CENTER_COUNTDOWN_ROUNDSTOP); delete(this); announcer_countdown = NULL; + centerprint_ClearTitle(); return; } @@ -113,7 +114,7 @@ void Announcer_Gamestart() } // z411 set title - if(time <= STAT(GAMESTARTTIME) && !warmup_stage) { + if(time < STAT(GAMESTARTTIME) && !warmup_stage) { if(gametype == MAPINFO_TYPE_DUEL) { entity pl1 = players.sort_next; entity pl2 = pl1.sort_next; diff --git a/qcsrc/client/hud/panel/centerprint.qc b/qcsrc/client/hud/panel/centerprint.qc index 2a6cf238c..16d8c8b0c 100644 --- a/qcsrc/client/hud/panel/centerprint.qc +++ b/qcsrc/client/hud/panel/centerprint.qc @@ -52,6 +52,7 @@ string centerprint_title; void centerprint_ClearTitle() { + centerprint_title = string_null; centerprint_title_show = false; } void centerprint_SetTitle(string title) -- 2.39.2