diff options
-rw-r--r-- | ai/ai_event.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ai/ai_event.h b/ai/ai_event.h index 33d5d170a..0be131653 100644 --- a/ai/ai_event.h +++ b/ai/ai_event.h @@ -13,8 +13,12 @@ #else /* GPMI */ -/* If GPMI isn't loaded, don't do a thing with the events (for now at least) */ -# define ai_event(...) +# ifdef DEF_EVENTS + void CDECL empty_function(PlayerID player, int event, ...) {} +# else + extern void CDECL empty_function(PlayerID player, int event, ...); +# endif +# define ai_event empty_function #endif /* GPMI */ /* To make our life a bit easier; you now only have to define new |