summaryrefslogtreecommitdiff
path: root/src/ai/default
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-07-18 16:40:29 +0000
committerrubidium <rubidium@openttd.org>2008-07-18 16:40:29 +0000
commit3a799389ebf915cc59b6e85346d837621ebe771a (patch)
tree82319a3d42401c6d6fa4944e99863807f05c6f5f /src/ai/default
parent891bec7e23a0a077df93b8fd1fe156ef059df8b4 (diff)
downloadopenttd-3a799389ebf915cc59b6e85346d837621ebe771a.tar.xz
(svn r13731) -Codechange: make a pool of the array of players.
Diffstat (limited to 'src/ai/default')
-rw-r--r--src/ai/default/default.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp
index 1e5fcbcb8..db91cdab3 100644
--- a/src/ai/default/default.cpp
+++ b/src/ai/default/default.cpp
@@ -3897,8 +3897,7 @@ static void AiHandleTakeover(Player *p)
// Ask the guy with the highest performance hist.
FOR_ALL_PLAYERS(pp) {
- if (pp->is_active &&
- !(asked & 1) &&
+ if (!(asked & 1) &&
pp->bankrupt_asked == 0 &&
best_val < pp->old_economy[1].performance_history) {
best_val = pp->old_economy[1].performance_history;