]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/notifications/all.qc
Optimize NOTIF_WRITE_HARDCODED
[xonotic/xonotic-data.pk3dir.git] / 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