diff options
author | truelight <truelight@openttd.org> | 2005-11-22 15:55:38 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-11-22 15:55:38 +0000 |
commit | 6a4ba84320ae137793760b628dad23de29d0b633 (patch) | |
tree | 6702beccddba7217fe3ad311ffda9285b6719e5d /ai/default | |
parent | 4d2c4c5d8a9c260e4087fab654f61140e984f79c (diff) | |
download | openttd-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 'ai/default')
-rw-r--r-- | ai/default/default.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/ai/default/default.c b/ai/default/default.c index 4f4283f1a..b8648dbe2 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -3938,24 +3938,6 @@ void AiDoGameLoop(Player *p) AiAdjustLoan(p); AiBuildCompanyHQ(p); - if (_opt.diff.competitor_speed == 4) { - /* ultraspeed */ - _ai_actions[p->ai.state](p); - if (p->bankrupt_asked != 0) - return; - } else if (_opt.diff.competitor_speed != 3) { - p->ai.tick++; - if (!(p->ai.tick&1)) - return; - if (_opt.diff.competitor_speed != 2) { - if (!(p->ai.tick&2)) - return; - if (_opt.diff.competitor_speed == 0) { - if (!(p->ai.tick&4)) - return; - } - } - } #if 0 { static byte old_state = 99; |