From 926af42299cb036e51ec47149a342fe5173e4979 Mon Sep 17 00:00:00 2001 From: z411 Date: Sat, 19 Mar 2022 21:20:02 -0300 Subject: [PATCH] Using CCR to process centerprint titles --- qcsrc/client/announcer.qc | 2 +- qcsrc/client/hud/panel/centerprint.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/announcer.qc b/qcsrc/client/announcer.qc index 0635ea5fc..58c2727f7 100644 --- a/qcsrc/client/announcer.qc +++ b/qcsrc/client/announcer.qc @@ -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); } diff --git a/qcsrc/client/hud/panel/centerprint.qc b/qcsrc/client/hud/panel/centerprint.qc index ec11e1bac..d6b154200 100644 --- a/qcsrc/client/hud/panel/centerprint.qc +++ b/qcsrc/client/hud/panel/centerprint.qc @@ -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; } } -- 2.39.2