summaryrefslogtreecommitdiff
path: root/settings_gui.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-12-20 21:24:50 +0000
committerDarkvater <Darkvater@openttd.org>2005-12-20 21:24:50 +0000
commit756f84e3bd1e06a20a58b6203756382c09c30d7a (patch)
tree2dfee4850baadf7c005a244f5fb6bddb79d381f0 /settings_gui.c
parenteea9e9527865f365fd91f842c8ee192aa3caaa74 (diff)
downloadopenttd-756f84e3bd1e06a20a58b6203756382c09c30d7a.tar.xz
(svn r3323) - Fix: automatically enable new AI when turning on the AI in multiplayer feature (it only works that way and we all know users don't read).
Diffstat (limited to 'settings_gui.c')
-rw-r--r--settings_gui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/settings_gui.c b/settings_gui.c
index e7c657204..822e65283 100644
--- a/settings_gui.c
+++ b/settings_gui.c
@@ -567,7 +567,10 @@ static int32 AiNew_PatchActive_Warning(int32 p1)
static int32 Ai_In_Multiplayer_Warning(int32 p1)
{
- if (p1 == 1) ShowErrorMessage(INVALID_STRING_ID, TEMP_AI_MULTIPLAYER, 0, 0);
+ if (p1 == 1) {
+ ShowErrorMessage(INVALID_STRING_ID, TEMP_AI_MULTIPLAYER, 0, 0);
+ _patches.ainew_active = true;
+ }
return 0;
}