From 4e32718696df8fa73a67ca2f836ee12116adb586 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 8 Feb 2019 23:16:54 +0100 Subject: [PATCH] Optimize NOTIF_WRITE_HARDCODED --- qcsrc/common/notifications/all.qc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/qcsrc/common/notifications/all.qc b/qcsrc/common/notifications/all.qc index 26b8a2bec..107397758 100644 --- a/qcsrc/common/notifications/all.qc +++ b/qcsrc/common/notifications/all.qc @@ -794,10 +794,7 @@ void Dump_Notifications(int fh, bool alsoprint) )) #define NOTIF_WRITE_HARDCODED(cvar, default, description) \ - NOTIF_WRITE(sprintf( \ - "seta notification_%s \"%s\" \"%s\"\n", \ - cvar, default, description \ - )) + NOTIF_WRITE("seta notification_" cvar " \"" default "\" \"" description "\"\n") // Note: This warning only applies to the notifications.cfg file that is output... // You ARE supposed to manually edit this function to add i.e. hard coded -- 2.39.2