From: Samual Lenks Date: Fri, 1 Mar 2013 04:53:26 +0000 (-0500) Subject: More cleaning X-Git-Tag: xonotic-v0.7.0~62^2~23^2~68 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=414473df4bddbe863379e26226abdafa46603be0;p=xonotic%2Fxonotic-data.pk3dir.git More cleaning --- diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index 75a25b103..a77d1f42a 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -598,8 +598,7 @@ void Destroy_All_Notifications(void) DESTROY_LOOP(MSG_CENTER, NOTIF_CENTER_COUNT) DESTROY_LOOP(MSG_WEAPON, NOTIF_WEAPON_COUNT) DESTROY_LOOP(MSG_DEATH, NOTIF_DEATH_COUNT) - - //print("Destroyed all huma-- I mean... notifications.. successfully.\n"); + #undef DESTROY_LOOP } @@ -706,9 +705,22 @@ void Dump_Notifications(float fh, float alsoprint) NOTIF_WRITE_HARDCODED("lifetime_runtime", "0.5", "Amount of time that notification entities last on the server during runtime (In seconds)"); NOTIF_WRITE_HARDCODED("lifetime_mapload", "10", "Amount of time that notification entities last immediately at mapload (in seconds) to help prevent notifications from being lost on early init (like gamestart countdown)"); - NOTIF_WRITE(sprintf("\n// Notification counts (total = %d): MSG_INFO = %d, MSG_CENTER = %d, MSG_WEAPON = %d, MSG_DEATH = %d\n", - (NOTIF_INFO_COUNT + NOTIF_CENTER_COUNT + NOTIF_WEAPON_COUNT + NOTIF_DEATH_COUNT), - NOTIF_INFO_COUNT, NOTIF_CENTER_COUNT, NOTIF_WEAPON_COUNT, NOTIF_DEATH_COUNT)); + NOTIF_WRITE(sprintf( + strcat( + "\n// Notification counts (total = %d): ", + "MSG_INFO = %d, MSG_CENTER = %d, MSG_WEAPON = %d, MSG_DEATH = %d\n" + ), + ( + NOTIF_INFO_COUNT + + NOTIF_CENTER_COUNT + + NOTIF_WEAPON_COUNT + + NOTIF_DEATH_COUNT + ), + NOTIF_INFO_COUNT, + NOTIF_CENTER_COUNT, + NOTIF_WEAPON_COUNT, + NOTIF_DEATH_COUNT + )); return; #undef NOTIF_WRITE_HARDCODED