summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-11-22 15:55:38 +0000
committertruelight <truelight@openttd.org>2005-11-22 15:55:38 +0000
commit6a4ba84320ae137793760b628dad23de29d0b633 (patch)
tree6702beccddba7217fe3ad311ffda9285b6719e5d /economy.c
parent4d2c4c5d8a9c260e4087fab654f61140e984f79c (diff)
downloadopenttd-6a4ba84320ae137793760b628dad23de29d0b633.tar.xz
(svn r3226) -Fix: GPMI implementation had minor glitches
-Fix: the AI speed control is done by the AI-core, individual AIs don't have to do it (so, AIs were delayed twice ;) -Add: Support for AI-network-clients (an AI, connecting to a remote server) -Fix: minor AI-core problems
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/economy.c b/economy.c
index d595d13f4..a15fe2195 100644
--- a/economy.c
+++ b/economy.c
@@ -477,6 +477,8 @@ static void PlayersCheckBankrupt(Player *p)
if (!IS_HUMAN_PLAYER(owner) && (!_networking || _network_server) && _ai.enabled)
AI_PlayerDied(owner);
+ if (IS_HUMAN_PLAYER(owner) && owner == _local_player && _ai.network_client)
+ AI_PlayerDied(owner);
}
}
}