]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply color replacement to notification arguments
authorMario <mario@smbclan.net>
Sun, 12 Feb 2017 03:33:21 +0000 (13:33 +1000)
committerMario <mario@smbclan.net>
Sun, 12 Feb 2017 03:33:21 +0000 (13:33 +1000)
qcsrc/common/notifications/all.qc

index e312aca8530124038c4a495f95deb721f18b0b45..d39c9f86e13bb59a3b2ba0952a8fbe4f4f5d2f35 100644 (file)
@@ -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);