From ee3c3cf64912023c288aceee4188169147df0d8d Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 25 Dec 2019 02:50:13 +1000 Subject: [PATCH] Use strcat instead of sprintf in ReplicateVars, improves client-side performance a bit (heavily called function) --- qcsrc/common/notifications/all.qh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/notifications/all.qh b/qcsrc/common/notifications/all.qh index ee39b1881..d85550065 100644 --- a/qcsrc/common/notifications/all.qh +++ b/qcsrc/common/notifications/all.qh @@ -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); }); -- 2.39.2