summaryrefslogtreecommitdiff
path: root/ai
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-12-06 17:05:14 +0000
committertruelight <truelight@openttd.org>2005-12-06 17:05:14 +0000
commitaf87b2916ad54b889a18c174d48db0ca1371b543 (patch)
tree5f25eda9809afcb3df7898a2574d323743f9c7d0 /ai
parent686da2f4e14256b2b79ee6d070a580aafddefde1 (diff)
downloadopenttd-af87b2916ad54b889a18c174d48db0ca1371b543.tar.xz
(svn r3265) -Fix: partly reverted back r3263, because MSVC, who else, doesn't support variadic macros............
Diffstat (limited to 'ai')
-rw-r--r--ai/ai_event.h8
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