summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-01-03 21:32:51 +0000
committerrubidium <rubidium@openttd.org>2012-01-03 21:32:51 +0000
commit6d6be50ae0b0a0b233f918c3d7b9c0b623676439 (patch)
tree363706bbe1ba6b6371262054186fc05b6ec938a7 /src/ai
parentd880056415cf6254e86a3038a8ed2d02f8af2267 (diff)
downloadopenttd-6d6be50ae0b0a0b233f918c3d7b9c0b623676439.tar.xz
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_config.cpp1
-rw-r--r--src/ai/ai_core.cpp4
-rw-r--r--src/ai/ai_gui.cpp3
-rw-r--r--src/ai/ai_info.cpp3
-rw-r--r--src/ai/ai_instance.cpp3
-rw-r--r--src/ai/ai_scanner.cpp2
6 files changed, 0 insertions, 16 deletions
diff --git a/src/ai/ai_config.cpp b/src/ai/ai_config.cpp
index 89b959015..7d6571c14 100644
--- a/src/ai/ai_config.cpp
+++ b/src/ai/ai_config.cpp
@@ -11,7 +11,6 @@
#include "../stdafx.h"
#include "../settings_type.h"
-#include "../core/random_func.hpp"
#include "ai.hpp"
#include "ai_config.hpp"
#include "ai_info.hpp"
diff --git a/src/ai/ai_core.cpp b/src/ai/ai_core.cpp
index 16bf96dc6..6931accc7 100644
--- a/src/ai/ai_core.cpp
+++ b/src/ai/ai_core.cpp
@@ -16,15 +16,11 @@
#include "../company_func.h"
#include "../network/network.h"
#include "../window_func.h"
-#include "../command_func.h"
-#include "../fileio_func.h"
#include "ai_scanner.hpp"
#include "ai_instance.hpp"
#include "ai_config.hpp"
#include "ai_info.hpp"
#include "ai.hpp"
-#include "../script/script_storage.hpp"
-#include "../script/api/script_error.hpp"
/* static */ uint AI::frame_counter = 0;
/* static */ AIScannerInfo *AI::scanner_info = NULL;
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index f60233077..3620dfc75 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -14,7 +14,6 @@
#include "../error.h"
#include "../gui.h"
#include "../querystring_gui.h"
-#include "../company_func.h"
#include "../company_base.h"
#include "../company_gui.h"
#include "../strings_func.h"
@@ -24,7 +23,6 @@
#include "../network/network.h"
#include "../settings_func.h"
#include "../network/network_content.h"
-#include "../core/backup_type.hpp"
#include "ai.hpp"
#include "../script/api/script_log.hpp"
@@ -36,7 +34,6 @@
#include "../game/game_info.hpp"
#include "../game/game_instance.hpp"
-#include "../widgets/ai_widget.h"
#include "table/strings.h"
diff --git a/src/ai/ai_info.cpp b/src/ai/ai_info.cpp
index 83bae7aad..ab5f5bde5 100644
--- a/src/ai/ai_info.cpp
+++ b/src/ai/ai_info.cpp
@@ -11,14 +11,11 @@
#include "../stdafx.h"
-#include "../script/squirrel_helper.hpp"
#include "../script/squirrel_class.hpp"
#include "ai_info.hpp"
#include "ai_scanner.hpp"
-#include "../settings_type.h"
#include "../debug.h"
#include "../rev.h"
-#include "ai.hpp"
/**
* Check if the API version provided by the AI is supported.
diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp
index cf7106b9c..6c71fef76 100644
--- a/src/ai/ai_instance.cpp
+++ b/src/ai/ai_instance.cpp
@@ -11,7 +11,6 @@
#include "../stdafx.h"
#include "../debug.h"
-#include "../saveload/saveload.h"
#include "../error.h"
#include "../script/squirrel_class.hpp"
@@ -20,8 +19,6 @@
#include "ai_gui.hpp"
#include "ai.hpp"
-#include "../script/script_fatalerror.hpp"
-#include "../script/script_suspend.hpp"
#include "../script/script_storage.hpp"
#include "ai_info.hpp"
#include "ai_instance.hpp"
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp
index 3ab0b431e..64b877c6c 100644
--- a/src/ai/ai_scanner.cpp
+++ b/src/ai/ai_scanner.cpp
@@ -11,14 +11,12 @@
#include "../stdafx.h"
#include "../debug.h"
-#include "../fileio_func.h"
#include "../network/network.h"
#include "../core/random_func.hpp"
#include "../script/squirrel_class.hpp"
#include "ai_info.hpp"
#include "ai_scanner.hpp"
-#include "../script/api/script_controller.hpp"
AIScannerInfo::AIScannerInfo() :