From: z411 Date: Thu, 6 Jan 2022 02:47:26 +0000 (-0300) Subject: Fix round handler and center title X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f32bb49514d2fb6676134c8720dc8d6a7a9fd4bf;p=xonotic%2Fxonotic-data.pk3dir.git Fix round handler and center title --- 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)