summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai.h2
-rw-r--r--src/ai/default/default.cpp2
-rw-r--r--src/ai/trolly/build.cpp1
-rw-r--r--src/ai/trolly/pathfinder.cpp1
-rw-r--r--src/ai/trolly/trolly.cpp1
5 files changed, 3 insertions, 4 deletions
diff --git a/src/ai/ai.h b/src/ai/ai.h
index 081d3e969..2fdb3c986 100644
--- a/src/ai/ai.h
+++ b/src/ai/ai.h
@@ -3,10 +3,10 @@
#ifndef AI_H
#define AI_H
-#include "../functions.h"
#include "../network/network.h"
#include "../player.h"
#include "../command_type.h"
+#include "../core/random_func.hpp"
/* How DoCommands look like for an AI */
struct AICommand {
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp
index b16fd8e30..8c016afc7 100644
--- a/src/ai/default/default.cpp
+++ b/src/ai/default/default.cpp
@@ -26,6 +26,8 @@
#include "../../bridge.h"
#include "../../date.h"
#include "../../tunnelbridge_map.h"
+#include "../../window_func.h"
+#include "../../functions.h"
#include "default.h"
diff --git a/src/ai/trolly/build.cpp b/src/ai/trolly/build.cpp
index 53bf9b782..932e23aca 100644
--- a/src/ai/trolly/build.cpp
+++ b/src/ai/trolly/build.cpp
@@ -3,7 +3,6 @@
#include "../../stdafx.h"
#include "../../openttd.h"
#include "../../debug.h"
-#include "../../functions.h"
#include "../../map.h"
#include "../../road_map.h"
#include "../../vehicle.h"
diff --git a/src/ai/trolly/pathfinder.cpp b/src/ai/trolly/pathfinder.cpp
index b81ddfebb..c97e080c7 100644
--- a/src/ai/trolly/pathfinder.cpp
+++ b/src/ai/trolly/pathfinder.cpp
@@ -4,7 +4,6 @@
#include "../../openttd.h"
#include "../../bridge_map.h"
#include "../../debug.h"
-#include "../../functions.h"
#include "../../map.h"
#include "../../command_func.h"
#include "trolly.h"
diff --git a/src/ai/trolly/trolly.cpp b/src/ai/trolly/trolly.cpp
index 373e297d2..388d59906 100644
--- a/src/ai/trolly/trolly.cpp
+++ b/src/ai/trolly/trolly.cpp
@@ -20,7 +20,6 @@
#include "../../stdafx.h"
#include "../../openttd.h"
#include "../../debug.h"
-#include "../../functions.h"
#include "../../road_map.h"
#include "../../station_map.h"
#include "table/strings.h"