From: Mario Date: Sun, 12 Feb 2017 03:33:21 +0000 (+1000) Subject: Apply color replacement to notification arguments X-Git-Tag: xonotic-v0.8.2~225 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=8a322f7700893e32e4404d4d6f085846cad6a92f;p=xonotic%2Fxonotic-data.pk3dir.git Apply color replacement to notification arguments --- diff --git a/qcsrc/common/notifications/all.qc b/qcsrc/common/notifications/all.qc index e312aca85..d39c9f86e 100644 --- a/qcsrc/common/notifications/all.qc +++ b/qcsrc/common/notifications/all.qc @@ -1208,10 +1208,10 @@ void Local_Notification(MSG net_type, Notification net_name, ...count) return; } - string s1 = ((notif.nent_stringcount > 0) ? ...(0, string) : ""); - string s2 = ((notif.nent_stringcount > 1) ? ...(1, string) : ""); - string s3 = ((notif.nent_stringcount > 2) ? ...(2, string) : ""); - string s4 = ((notif.nent_stringcount > 3) ? ...(3, string) : ""); + string s1 = CCR((notif.nent_stringcount > 0) ? ...(0, string) : ""); + string s2 = CCR((notif.nent_stringcount > 1) ? ...(1, string) : ""); + string s3 = CCR((notif.nent_stringcount > 2) ? ...(2, string) : ""); + string s4 = CCR((notif.nent_stringcount > 3) ? ...(3, string) : ""); float f1 = ((notif.nent_floatcount > 0) ? ...((notif.nent_stringcount + 0), float) : 0); float f2 = ((notif.nent_floatcount > 1) ? ...((notif.nent_stringcount + 1), float) : 0); float f3 = ((notif.nent_floatcount > 2) ? ...((notif.nent_stringcount + 2), float) : 0);