diff options
author | truelight <truelight@openttd.org> | 2005-11-21 14:28:31 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-11-21 14:28:31 +0000 |
commit | 31f218fdf9fe416acb05a50aea145bc59c677a39 (patch) | |
tree | ed3e3492216f1374aa8c453d1e1db298c57deb95 /settings_gui.c | |
parent | c7f3192f6ba2f8a9de7175c1eaa6f86971051c01 (diff) | |
download | openttd-31f218fdf9fe416acb05a50aea145bc59c677a39.tar.xz |
(svn r3224) -Add: Allow the NewAI to work in Multiplayer Games (switchable via patch
settings, off by defaut). An other step to AIScripts.
WARNING: this is still highly experimental and has known bugs!
Diffstat (limited to 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/settings_gui.c b/settings_gui.c index d34a518e9..6301ff0e1 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -565,6 +565,12 @@ static int32 AiNew_PatchActive_Warning(int32 p1) return 0; } +static int32 Ai_In_Multiplayer_Warning(int32 p1) +{ + if (p1 == 1) ShowErrorMessage(-1, TEMP_AI_MULTIPLAYER, 0, 0); + return 0; +} + static int32 PopulationInLabelActive(int32 p1) { Town* t; @@ -753,6 +759,7 @@ static const PatchEntry _patches_economy[] = { static const PatchEntry _patches_ai[] = { {PE_BOOL, 0, STR_CONFIG_PATCHES_AINEW_ACTIVE, "ainew_active", &_patches.ainew_active, 0, 1, 1, &AiNew_PatchActive_Warning}, + {PE_BOOL, 0, STR_CONFIG_PATCHES_AI_IN_MULTIPLAYER, "ai_in_multiplayer", &_patches.ai_in_multiplayer, 0, 1, 1, &Ai_In_Multiplayer_Warning}, {PE_BOOL, 0, STR_CONFIG_PATCHES_AI_BUILDS_TRAINS, "ai_disable_veh_train", &_patches.ai_disable_veh_train, 0, 0, 0, NULL}, {PE_BOOL, 0, STR_CONFIG_PATCHES_AI_BUILDS_ROADVEH,"ai_disable_veh_roadveh",&_patches.ai_disable_veh_roadveh, 0, 0, 0, NULL}, |