From: Samual Lenks Date: Tue, 25 Sep 2012 19:26:34 +0000 (-0400) Subject: Actually, we can clean up the code a little by doing this... X-Git-Tag: xonotic-v0.7.0~62^2~23^2~423 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b0e14b19331d7f02ac4b97ce0aa7f5cab8400eb0;p=xonotic%2Fxonotic-data.pk3dir.git Actually, we can clean up the code a little by doing this... --- diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index b60f5d9f4..182bf7866 100644 --- a/qcsrc/common/notifications.qc +++ b/qcsrc/common/notifications.qc @@ -90,11 +90,11 @@ float NOTIF_CPID_COUNT; */ #define MSG_INFO_NOTIFICATIONS \ MSG_INFO_NOTIF(DEATH_MARBLES_LOST, CLPS3(s1, s2, s3), _("^F1%s^BG lost their marbles against ^F1%s^BG using the ^F2%s^BG\n"), "") \ - /* nothing */ + #undef MSG_INFO_NOTIF #define MSG_NOTIFY_NOTIFICATIONS \ MSG_NOTIFY_NOTIF(DEATH_MARBLES_LOST2, CLPS3(s1, s2, s3), "notify_death", _("^F1%s^BG lost their marbles against ^F1%s^BG using the ^F2%s^BG\n"), "") \ - /* nothing */ + #undef MSG_NOTIFY_NOTIF #define MSG_CENTER_NOTIFICATIONS \ MSG_CENTER_NOTIF(CENTER_CTF_CAPTURESHIELD_SHIELDED, "", CPID_CTF_CAPTURESHIELD, _("^BGYou are now ^F1shielded^BG from the flag\n^BGfor ^F2too many unsuccessful attempts^BG to capture.\n^BGMake some defensive scores before trying again."), "") \ @@ -104,11 +104,11 @@ float NOTIF_CPID_COUNT; MSG_CENTER_NOTIF(CENTER_CTF_EVENT_PASS_RECEIVED, CLPS2(s1, s2), CPID_CTF_PASS, _("^BGYou received the ^F1%s^BG from %s"), "") \ MSG_CENTER_NOTIF(CENTER_CTF_EVENT_RETURN, s1, CPID_CTF_LOWPRIO, _("^BGYou returned the ^F1%s"), "") \ MSG_CENTER_NOTIF(CENTER_CTF_EVENT_CAPTURE, s1, NO_CPID, _("^BGYou captured the ^F1%s"), "") \ - /* nothing */ + #undef MSG_CENTER_NOTIF #define MSG_WEAPON_NOTIFICATIONS \ MSG_WEAPON_NOTIF(DEATH_MARBLES_LOST3, CLPS3(s1, s2, s3), _("^F1%s^BG lost their marbles against ^F1%s^BG using the ^F2%s^BG\n"), "") \ - /* nothing */ + #undef MSG_WEAPON_NOTIF // NOW we actually activate the declarations MSG_INFO_NOTIFICATIONS @@ -116,12 +116,6 @@ MSG_NOTIFY_NOTIFICATIONS MSG_CENTER_NOTIFICATIONS MSG_WEAPON_NOTIFICATIONS -// finally, since that's done... undeclare the handlers so that we can use the list in other ways. -#undef MSG_INFO_NOTIF -#undef MSG_NOTIFY_NOTIF -#undef MSG_CENTER_NOTIF -#undef MSG_WEAPON_NOTIF - // ====================== // Supporting Functions