summaryrefslogtreecommitdiff
path: root/src/ai/ai.cpp
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/ai.cpp
parent891bec7e23a0a077df93b8fd1fe156ef059df8b4 (diff)
downloadopenttd-3a799389ebf915cc59b6e85346d837621ebe771a.tar.xz
(svn r13731) -Codechange: make a pool of the array of players.
Diffstat (limited to 'src/ai/ai.cpp')
-rw-r--r--src/ai/ai.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/ai.cpp b/src/ai/ai.cpp
index c32f52ad8..1bf72f805 100644
--- a/src/ai/ai.cpp
+++ b/src/ai/ai.cpp
@@ -193,7 +193,7 @@ void AI_RunGameLoop()
const Player* p;
FOR_ALL_PLAYERS(p) {
- if (p->is_active && p->is_ai) {
+ if (p->is_ai) {
/* This should always be true, else something went wrong... */
assert(_ai_player[p->index].active);
@@ -249,6 +249,6 @@ void AI_Uninitialize()
const Player* p;
FOR_ALL_PLAYERS(p) {
- if (p->is_active && p->is_ai) AI_PlayerDied(p->index);
+ if (p->is_ai) AI_PlayerDied(p->index);
}
}