// 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
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() \
{ \
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() \
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() \
{ \
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() \
{ \
#undef MSG_CENTER_NOTIF
#undef MSG_WEAPON_NOTIF
#undef MSG_DEATH_NOTIF
+
+#endif // ifndef MENUQC