summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-01-13 01:21:35 +0000
committerrubidium <rubidium@openttd.org>2008-01-13 01:21:35 +0000
commitd4e6a6bf57216b39745b61971141e088e15e2d0d (patch)
treefc3e123d733a91dd61b578c69516fae69754c97f /src/ai
parenta78d73805f467d3ced0a70a1758435498fd1dbac (diff)
downloadopenttd-d4e6a6bf57216b39745b61971141e088e15e2d0d.tar.xz
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
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