]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add newline automatically
authorSamual Lenks <samual@xonotic.org>
Tue, 20 Aug 2013 21:46:10 +0000 (17:46 -0400)
committerSamual Lenks <samual@xonotic.org>
Tue, 20 Aug 2013 21:46:10 +0000 (17:46 -0400)
qcsrc/common/notifications.qc

index 28cba8b3da672d297084d866f901c873b0dac3ab..512b98836959fee1d98e3ebbfce060a06f288117 100644 (file)
@@ -952,7 +952,7 @@ string Local_Notification_sprintf(
                        default: NOTIF_HIT_UNKNOWN(NOTIF_MAX_ARGS, "Local_Notification_sprintf")
                }
        }
-       return sprintf(input, arg_slot[0], arg_slot[1], arg_slot[2], arg_slot[3], arg_slot[4], arg_slot[5], arg_slot[6]);
+       return sprintf(strcat(input, "\n"), arg_slot[0], arg_slot[1], arg_slot[2], arg_slot[3], arg_slot[4], arg_slot[5], arg_slot[6]);
 }
 
 #ifdef CSQC