]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use strcat instead of sprintf in ReplicateVars, improves client-side performance...
authorMario <mario.mario@y7mail.com>
Tue, 24 Dec 2019 16:50:13 +0000 (02:50 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 24 Dec 2019 16:50:13 +0000 (02:50 +1000)
qcsrc/common/notifications/all.qh

index ee39b1881ab100937221ae3604d1cac68bb817ae..d8555006595808e40096c59dd418f5e423627622 100644 (file)
@@ -865,7 +865,7 @@ void ReplicateVars(bool would_destroy)
 {
        if (!would_destroy)
                FOREACH(Notifications, it.nent_type == MSG_CHOICE, {
-                       string cvarname = sprintf("notification_%s", Get_Notif_CvarName(it));
+                       string cvarname = strcat("notification_", Get_Notif_CvarName(it));
                        // NOTE: REPLICATE_SIMPLE can return;
                        REPLICATE_SIMPLE(it.cvar_value, cvarname);
                });