summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
Diffstat (limited to 'players.c')
-rw-r--r--players.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/players.c b/players.c
index 5901b0db0..833f1dcf2 100644
--- a/players.c
+++ b/players.c
@@ -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);
}
}