summaryrefslogtreecommitdiff
path: root/settings.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-11-22 22:32:42 +0000
committertruelight <truelight@openttd.org>2005-11-22 22:32:42 +0000
commit492723691260bd2a79c7aa28d8c487198236333b (patch)
treec108cff1d6d6c569160b15fee5831f21f05596ef /settings.c
parentf6ddaf6a23c4218f5ab7c61a30288d78d5073484 (diff)
downloadopenttd-492723691260bd2a79c7aa28d8c487198236333b.tar.xz
(svn r3229) -Add: add more GPMI support. Now GPMI-based AIs can be loaded (doesn't change a thing if you didn't enable GPMI)
Diffstat (limited to 'settings.c')
-rw-r--r--settings.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/settings.c b/settings.c
index 7463ad522..d18b44564 100644
--- a/settings.c
+++ b/settings.c
@@ -11,6 +11,9 @@
#include "variables.h"
#include "network.h"
#include "settings.h"
+#ifdef GPMI
+#include "ai/ai.h"
+#endif /* GPMI */
typedef struct IniFile IniFile;
typedef struct IniItem IniItem;
@@ -943,6 +946,9 @@ const SettingDesc patch_settings[] = {
{"ainew_active", SDT_BOOL, (void*)false, &_patches.ainew_active, NULL},
{"ai_in_multiplayer", SDT_BOOL, (void*)false, &_patches.ai_in_multiplayer, NULL},
+#ifdef GPMI
+ {"ai_gpmi", SDT_BOOL, (void*)true, &_ai.gpmi, NULL},
+#endif /* GPMI */
{"map_x", SDT_UINT32, (void*)8, &_patches.map_x, NULL},
{"map_y", SDT_UINT32, (void*)8, &_patches.map_y, NULL},