summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-25 11:26:07 +0000
committerrubidium <rubidium@openttd.org>2007-12-25 11:26:07 +0000
commit81bf9f8503c52974c232252a20d1b1528be66d58 (patch)
tree54a33aa10dd79668da9f46e61e427ace39f5d37f /src/ai
parent00c9d3ef20c83df43118a9ace5b8dd8eca26a126 (diff)
downloadopenttd-81bf9f8503c52974c232252a20d1b1528be66d58.tar.xz
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
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"