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
commite5fa92384dc473849156d30836bb37de0014e513 (patch)
tree5f25eda9809afcb3df7898a2574d323743f9c7d0 /ai
parent20e20000f2701ca920216145bbe03dfad4f8f764 (diff)
downloadopenttd-e5fa92384dc473849156d30836bb37de0014e513.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