summaryrefslogtreecommitdiff
path: root/ai
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-11-27 16:45:45 +0000
committertruelight <truelight@openttd.org>2005-11-27 16:45:45 +0000
commit71b6f6c8aac713f6470a5c6c9f749f138ce52e84 (patch)
tree2a2f033649d0f5a72a51388eacab42d849c3b932 /ai
parent14064b223db33f041005ee86283c73a259153da6 (diff)
downloadopenttd-71b6f6c8aac713f6470a5c6c9f749f138ce52e84.tar.xz
(svn r3242) -Fix: small glitch in AllowAI control
Diffstat (limited to 'ai')
-rw-r--r--ai/ai.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ai/ai.h b/ai/ai.h
index cb18882ca..97a70b529 100644
--- a/ai/ai.h
+++ b/ai/ai.h
@@ -77,7 +77,7 @@ static inline bool AI_AllowNewAI(void)
* system, because all commands are delayed by at least 1 tick, which causes
* a big problem, because it uses variables that are only set AFTER the command
* is really executed... */
- if (!_patches.ainew_active)
+ if (!_patches.ainew_active && !_ai.gpmi)
return false;
}