diff options
author | truelight <truelight@openttd.org> | 2004-08-20 09:32:32 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-08-20 09:32:32 +0000 |
commit | 788ace088d8b3ba2afd77a8b21b532abc40d9eba (patch) | |
tree | 493248c0850e836b9a0d35c0fdddf9673b2a01b3 /players.c | |
parent | 80b1e25b6ce190a773ab9fe50927a983c8f2d038 (diff) | |
download | openttd-788ace088d8b3ba2afd77a8b21b532abc40d9eba.tar.xz |
(svn r85) -Add: initial commit of new AI (enable in Patch menu)
-Add: generalised A* Algorithm
-Add: generalised queues (Fifo, Stack, InsSort, BinaryHeap)
Diffstat (limited to 'players.c')
-rw-r--r-- | players.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -8,6 +8,7 @@ #include "news.h" #include "saveload.h" #include "command.h" +#include "ai.h" extern void StartupEconomy(); @@ -543,13 +544,16 @@ void OnTick_Players() void RunOtherPlayersLoop() { Player *p; - + _is_ai_player = true; FOR_ALL_PLAYERS(p) { if (p->is_active) { _current_player = p->index; - AiDoGameLoop(p); + if (_patches.ainew_active) + AiNewDoGameLoop(p); + else + AiDoGameLoop(p); } } |