From: z411 Date: Sun, 20 Mar 2022 00:20:02 +0000 (-0300) Subject: Using CCR to process centerprint titles X-Git-Tag: xonotic-v0.8.5~128^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=926af42299cb036e51ec47149a342fe5173e4979;p=xonotic%2Fxonotic-data.pk3dir.git Using CCR to process centerprint titles --- 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; } }