summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/default/default.cpp4
-rw-r--r--src/ai/trolly/trolly.cpp3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp
index b9d0f2f92..5a49673ac 100644
--- a/src/ai/default/default.cpp
+++ b/src/ai/default/default.cpp
@@ -31,6 +31,8 @@
#include "../../player_base.h"
#include "default.h"
+#include "../../table/ai_rail.h"
+
// remove some day perhaps?
static uint _ai_service_interval;
PlayerAI _players_ai[MAX_PLAYERS];
@@ -65,8 +67,6 @@ enum {
};
-#include "../../table/ai_rail.h"
-
static TrackBits GetRailTrackStatus(TileIndex tile)
{
uint32 r = GetTileTrackStatus(tile, TRANSPORT_RAIL, 0);
diff --git a/src/ai/trolly/trolly.cpp b/src/ai/trolly/trolly.cpp
index 8a863142e..f7c488b49 100644
--- a/src/ai/trolly/trolly.cpp
+++ b/src/ai/trolly/trolly.cpp
@@ -22,7 +22,6 @@
#include "../../debug.h"
#include "../../road_map.h"
#include "../../station_map.h"
-#include "table/strings.h"
#include "../../command_func.h"
#include "trolly.h"
#include "../../town.h"
@@ -39,6 +38,8 @@
#include "../../player_base.h"
#include "../../player_func.h"
+#include "table/strings.h"
+
PlayerAiNew _players_ainew[MAX_PLAYERS];
// This function is called after StartUp. It is the init of an AI