From: terencehill Date: Fri, 8 Feb 2019 22:16:54 +0000 (+0100) Subject: Optimize NOTIF_WRITE_HARDCODED X-Git-Tag: xonotic-v0.8.5~1604^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4e32718696df8fa73a67ca2f836ee12116adb586;p=xonotic%2Fxonotic-data.pk3dir.git Optimize NOTIF_WRITE_HARDCODED --- 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