]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Using CCR to process centerprint titles
authorz411 <z411@omaera.org>
Sun, 20 Mar 2022 00:20:02 +0000 (21:20 -0300)
committerz411 <z411@omaera.org>
Sun, 20 Mar 2022 00:20:02 +0000 (21:20 -0300)
qcsrc/client/announcer.qc
qcsrc/client/hud/panel/centerprint.qc

index 0635ea5fc48ce54fd525ba96e9577ae7f505c603..58c2727f7705a34bdb4a6ae3510804c970b25671 100644 (file)
@@ -109,7 +109,7 @@ void Announcer_Gamestart()
 
                        if(!warmup_stage && time < STAT(GAMESTARTTIME))
                        {
-                               centerprint_SetTitle(MapInfo_Type_ToText(gametype)); // Set centerprint title
+                               centerprint_SetTitle(strcat("^BG", MapInfo_Type_ToText(gametype))); // Set centerprint title
                                if(time + 5.0 < startTime) // if connecting to server while restart was active don't always play prepareforbattle
                                        Local_Notification(MSG_ANNCE, ANNCE_PREPARE);
                        }
index ec11e1bac1048ecdde99a076abf5db4b954aec01..d6b154200eb757dfe753e10111da895bd653444e 100644 (file)
@@ -160,7 +160,7 @@ void centerprint_SetTitle(string title)
                if(centerprint_title)
                        strfree(centerprint_title);
 
-               centerprint_title = strzone(title);
+               centerprint_title = strzone(CCR(title));
                centerprint_title_show = true;
        }
 }