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
commita2ae8a707cd94e4382bae400e7f8e09e302a412e (patch)
tree2a2f033649d0f5a72a51388eacab42d849c3b932 /ai
parent87f54ebf92725c36c4ab0aa1b97fe9152e7db5c1 (diff)
downloadopenttd-a2ae8a707cd94e4382bae400e7f8e09e302a412e.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;
}