From: Samual Lenks Date: Fri, 8 Feb 2013 23:16:43 +0000 (-0500) Subject: Menu doesn't need notification init X-Git-Tag: xonotic-v0.7.0~62^2~23^2~255 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=caf3acf792b5743b7b4c4b666b1e8e33d66fd4fb;p=xonotic%2Fxonotic-data.pk3dir.git Menu doesn't need notification init --- diff --git a/qcsrc/common/notifications.qh b/qcsrc/common/notifications.qh index 9aa7e88fa..a1f2e7e46 100644 --- a/qcsrc/common/notifications.qh +++ b/qcsrc/common/notifications.qh @@ -571,6 +571,8 @@ void Dump_Notifications(float fh, float alsoprint); // Initialization/Create Declarations // ==================================== +#ifndef MENUQC // Menu doesn't need init + #define NOTIF_FIRST 1 #define NOTIF_MAX 1024 // limit of recursive functions with ACCUMULATE_FUNCTION @@ -598,9 +600,7 @@ float NOTIF_DEATH_COUNT; float NOTIF_CPID_COUNT; #define MSG_INFO_NOTIF(name,strnum,flnum,args,hudargs,icon,normal,gentle) \ - #ifndef MENUQC \ - ADD_AUTOCVAR(name) \ - #endif \ + ADD_AUTOCVAR(name) \ float name; \ void RegisterNotification_##name() \ { \ @@ -611,9 +611,7 @@ float NOTIF_CPID_COUNT; ACCUMULATE_FUNCTION(RegisterNotifications, RegisterNotification_##name) #define MSG_CENTER_NOTIF(name,strnum,flnum,args,cpid,durcnt,normal,gentle) \ - #ifndef MENUQC \ - ADD_AUTOCVAR(name) \ - #endif \ + ADD_AUTOCVAR(name) \ float name; \ float cpid; \ void RegisterNotification_##name() \ @@ -626,9 +624,7 @@ float NOTIF_CPID_COUNT; ACCUMULATE_FUNCTION(RegisterNotifications, RegisterNotification_##name) #define MSG_WEAPON_NOTIF(name,infoname,centername) \ - #ifndef MENUQC \ - ADD_AUTOCVAR(name) \ - #endif \ + ADD_AUTOCVAR(name) \ float name; \ void RegisterNotification_##name() \ { \ @@ -639,9 +635,7 @@ float NOTIF_CPID_COUNT; ACCUMULATE_FUNCTION(RegisterNotifications, RegisterNotification_##name) #define MSG_DEATH_NOTIF(name,infoname,centername) \ - #ifndef MENUQC \ - ADD_AUTOCVAR(name) \ - #endif \ + ADD_AUTOCVAR(name) \ float name; \ void RegisterNotification_##name() \ { \ @@ -660,3 +654,5 @@ MSG_DEATH_NOTIFICATIONS #undef MSG_CENTER_NOTIF #undef MSG_WEAPON_NOTIF #undef MSG_DEATH_NOTIF + +#endif // ifndef MENUQC