]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix round handler and center title
authorz411 <z411@omaera.org>
Thu, 6 Jan 2022 02:47:26 +0000 (23:47 -0300)
committerz411 <z411@omaera.org>
Thu, 6 Jan 2022 02:47:26 +0000 (23:47 -0300)
qcsrc/client/announcer.qc
qcsrc/client/hud/panel/centerprint.qc

index 9f459323045bd2f4f822671235bc104d8920c4db..41c8ecf5b29b116e39ea906226ec8231683132f1 100644 (file)
@@ -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;
index 2a6cf238cd800b2b7c71de9929bfc9b6079a273d..16d8c8b0c43bd32cb4014d51b1329b2a663f51f4 100644 (file)
@@ -52,6 +52,7 @@ string centerprint_title;
 
 void centerprint_ClearTitle()
 {
+       centerprint_title = string_null;
        centerprint_title_show = false;
 }
 void centerprint_SetTitle(string title)