]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Optimize NOTIF_WRITE_HARDCODED
authorterencehill <piuntn@gmail.com>
Fri, 8 Feb 2019 22:16:54 +0000 (23:16 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 8 Feb 2019 22:16:54 +0000 (23:16 +0100)
qcsrc/common/notifications/all.qc

index 26b8a2bec7a1f9a4a34c5e149a38912e3ee851f1..107397758e04887022f705d60ab36716518b028d 100644 (file)
@@ -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