summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-01-20 13:56:35 +0000
committersmatz <smatz@openttd.org>2009-01-20 13:56:35 +0000
commita9a8bb35901ca431756eba4406f9da9dbc817829 (patch)
tree39a77b90e14746c78ffdaf2509d326fd8055b61c /src
parent4091989752139d35c9153e701e862143acd99c7f (diff)
downloadopenttd-a9a8bb35901ca431756eba4406f9da9dbc817829.tar.xz
(svn r15166) -Codechange: reduce number of includes in afterload.cpp
Diffstat (limited to 'src')
-rw-r--r--src/engine_func.h3
-rw-r--r--src/saveload/afterload.cpp7
-rw-r--r--src/saveload/saveload_internal.h4
3 files changed, 4 insertions, 10 deletions
diff --git a/src/engine_func.h b/src/engine_func.h
index 12d7514e7..df0ca0d99 100644
--- a/src/engine_func.h
+++ b/src/engine_func.h
@@ -10,9 +10,6 @@
void SetupEngines();
void StartupEngines();
-Engine *GetTempDataEngine(EngineID index);
-void CopyTempEngineData();
-
/* Original engine data counts and offsets */
extern const uint8 _engine_counts[4];
extern const uint8 _engine_offsets[4];
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index 3de834342..21d11f97a 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -7,35 +7,28 @@
#include "../tile_type.h"
#include "../tile_map.h"
#include "../map_type.h"
-#include "../road_map.h"
#include "../town.h"
#include "../void_map.h"
#include "../signs_base.h"
#include "../window_func.h"
-#include "../station_func.h"
-#include "../company_base.h"
#include "../fios.h"
#include "../date_func.h"
-#include "../engine_func.h"
#include "../train.h"
#include "../string_func.h"
#include "../newgrf_config.h"
#include "../gamelog.h"
#include "../waypoint.h"
#include "../station_map.h"
-#include "../station_base.h"
#include "../tunnelbridge_map.h"
#include "../debug.h"
#include "../network/network.h"
#include "../openttd.h"
#include "../gfxinit.h"
-#include "../gfx_func.h"
#include "../functions.h"
#include "../industry_map.h"
#include "../town_map.h"
#include "../clear_map.h"
#include "../engine_base.h"
-#include "../landscape.h"
#include "../vehicle_func.h"
#include "../newgrf_station.h"
#include "../yapf/yapf.hpp"
diff --git a/src/saveload/saveload_internal.h b/src/saveload/saveload_internal.h
index 7bb865d81..246f9e697 100644
--- a/src/saveload/saveload_internal.h
+++ b/src/saveload/saveload_internal.h
@@ -8,6 +8,7 @@
#include "../strings_type.h"
#include "../company_manager_face.h"
#include "../order_base.h"
+#include "../engine_type.h"
void InitializeOldNames();
StringID RemapOldStringID(StringID s);
@@ -30,6 +31,9 @@ void ResetViewportAfterLoadGame();
void ConvertOldMultiheadToNew();
void ConnectMultiheadedTrains();
+Engine *GetTempDataEngine(EngineID index);
+void CopyTempEngineData();
+
extern int32 _saved_scrollpos_x;
extern int32 _saved_scrollpos_y;