diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp index 62829b4e05..5100f3337a 100644 --- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -11,7 +11,6 @@ #include "../../roadveh.h" #include "../../station_map.h" #include "../../tunnel_map.h" -#include "../../engine.h" #include "../../command_func.h" #include "../../town.h" #include "../../industry.h" diff --git a/src/ai/trolly/build.cpp b/src/ai/trolly/build.cpp index 109b937aae..b46984d0a7 100644 --- a/src/ai/trolly/build.cpp +++ b/src/ai/trolly/build.cpp @@ -6,7 +6,7 @@ #include "../../road_map.h" #include "../../command_func.h" #include "trolly.h" -#include "../../engine.h" +#include "../../engine_func.h" #include "../../variables.h" #include "../../bridge.h" #include "../../vehicle_func.h" diff --git a/src/ai/trolly/trolly.cpp b/src/ai/trolly/trolly.cpp index 0d176dc140..0860c43b0c 100644 --- a/src/ai/trolly/trolly.cpp +++ b/src/ai/trolly/trolly.cpp @@ -27,7 +27,7 @@ #include "../../town.h" #include "../../industry.h" #include "../../station_base.h" -#include "../../engine.h" +#include "../../engine_func.h" #include "../../gui.h" #include "../../depot.h" #include "../../vehicle_base.h" diff --git a/src/aircraft.h b/src/aircraft.h index 0012878b69..2f05aada22 100644 --- a/src/aircraft.h +++ b/src/aircraft.h @@ -8,7 +8,7 @@ #include "station_map.h" #include "station_base.h" #include "vehicle_base.h" -#include "engine.h" +#include "engine_func.h" /** An aircraft can be one ot those types */ enum AircraftSubType { diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 22e04b0a06..25be72919c 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -11,7 +11,6 @@ #include "station_map.h" #include "timetable.h" #include "depot.h" -#include "engine.h" #include "news_func.h" #include "aircraft.h" #include "airport.h" diff --git a/src/aircraft_gui.cpp b/src/aircraft_gui.cpp index d2c7ae0a25..bf445b8eec 100644 --- a/src/aircraft_gui.cpp +++ b/src/aircraft_gui.cpp @@ -7,7 +7,6 @@ #include "aircraft.h" #include "debug.h" #include "gui.h" -#include "engine.h" #include "depot.h" #include "vehicle_gui.h" #include "newgrf_engine.h" diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp index c4947bc3b8..1f943b104c 100644 --- a/src/articulated_vehicles.cpp +++ b/src/articulated_vehicles.cpp @@ -5,7 +5,6 @@ #include "stdafx.h" #include "openttd.h" #include "articulated_vehicles.h" -#include "engine.h" #include "train.h" #include "roadveh.h" #include "newgrf_callbacks.h" diff --git a/src/autoreplace_cmd.cpp b/src/autoreplace_cmd.cpp index 74f476669d..59dcbddc9a 100644 --- a/src/autoreplace_cmd.cpp +++ b/src/autoreplace_cmd.cpp @@ -6,7 +6,6 @@ #include "ship.h" #include "news_func.h" #include "player_func.h" -#include "engine.h" #include "debug.h" #include "vehicle_gui.h" #include "depot.h" diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp index 9c6eb3466f..f6cb4799f8 100644 --- a/src/autoreplace_gui.cpp +++ b/src/autoreplace_gui.cpp @@ -19,6 +19,7 @@ #include "gfx_func.h" #include "player_func.h" #include "widgets/dropdown_func.h" +#include "engine_func.h" #include "table/sprites.h" #include "table/strings.h" diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index 396c855878..58114c2217 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -13,7 +13,6 @@ #include "articulated_vehicles.h" #include "textbuf_gui.h" #include "command_func.h" -#include "engine.h" #include "player_func.h" #include "depot.h" #include "airport.h" diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index c18d2f6dfc..47e6d92122 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -6,7 +6,7 @@ #include "openttd.h" #include "console.h" #include "debug.h" -#include "engine.h" +#include "engine_func.h" #include "landscape.h" #include "saveload.h" #include "variables.h" @@ -18,7 +18,6 @@ #include "settings_func.h" #include "fios.h" #include "fileio.h" -#include "station.h" #include "screenshot.h" #include "genworld.h" #include "network/network.h" diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp index d4e883674e..18e4a053f5 100644 --- a/src/dock_gui.cpp +++ b/src/dock_gui.cpp @@ -5,7 +5,7 @@ #include "stdafx.h" #include "openttd.h" #include "tile_map.h" -#include "station.h" +#include "station_type.h" #include "gui.h" #include "terraform_gui.h" #include "window_gui.h" diff --git a/src/economy.cpp b/src/economy.cpp index 9a7203af0c..0544f2b68d 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -14,7 +14,6 @@ #include "town.h" #include "news_func.h" #include "network/network.h" -#include "engine.h" #include "network/network_data.h" #include "variables.h" #include "vehicle_gui.h" diff --git a/src/elrail.cpp b/src/elrail.cpp index c149085649..c126b80dcc 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -65,6 +65,7 @@ #include "vehicle_func.h" #include "player_base.h" #include "tunnelbridge.h" +#include "engine_func.h" #include "table/sprites.h" #include "table/elrail_data.h" diff --git a/src/engine.cpp b/src/engine.cpp index 7f2c770541..01b1fec473 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -5,7 +5,6 @@ #include "stdafx.h" #include "openttd.h" #include "debug.h" -#include "engine.h" #include "player_base.h" #include "player_func.h" #include "command_func.h" diff --git a/src/engine.h b/src/engine_func.h similarity index 100% rename from src/engine.h rename to src/engine_func.h diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp index 4611e700ca..cf0b83f7f1 100644 --- a/src/engine_gui.cpp +++ b/src/engine_gui.cpp @@ -7,7 +7,7 @@ #include "gui.h" #include "window_gui.h" #include "gfx_func.h" -#include "engine.h" +#include "engine_func.h" #include "command_func.h" #include "economy_func.h" #include "news_func.h" diff --git a/src/genworld.cpp b/src/genworld.cpp index 08768e0242..885e5171e5 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -21,7 +21,7 @@ #include "map_func.h" #include "date_func.h" #include "core/random_func.hpp" -#include "engine.h" +#include "engine_func.h" #include "settings_type.h" #include "newgrf_storage.h" #include "water.h" diff --git a/src/group.h b/src/group.h index da6ec7f2ae..7bac2b48fa 100644 --- a/src/group.h +++ b/src/group.h @@ -9,7 +9,7 @@ #include "oldpool.h" #include "player_type.h" #include "vehicle_type.h" -#include "engine.h" +#include "engine_type.h" DECLARE_OLD_POOL(Group, Group, 5, 2047) diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 667dcaea9c..85ca3ea14e 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -8,7 +8,6 @@ #include "window_gui.h" #include "textbuf_gui.h" #include "command_func.h" -#include "engine.h" #include "vehicle_gui.h" #include "depot.h" #include "train.h" diff --git a/src/helpers.cpp b/src/helpers.cpp index 4caf7927fc..4f55cc2725 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -5,7 +5,7 @@ #include "stdafx.h" #include "openttd.h" -#include "engine.h" +#include "engine_func.h" #include #include "misc/blob.hpp" diff --git a/src/misc.cpp b/src/misc.cpp index 80fb667f09..b132005221 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -8,7 +8,6 @@ #include "landscape.h" #include "news_func.h" #include "saveload.h" -#include "engine.h" #include "vehicle_gui.h" #include "variables.h" #include "ai/ai.h" diff --git a/src/newgrf.cpp b/src/newgrf.cpp index dde16e732a..0883335305 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -9,7 +9,7 @@ #include "openttd.h" #include "debug.h" #include "fileio.h" -#include "engine.h" +#include "engine_func.h" #include "spritecache.h" #include "sprite.h" #include "newgrf.h" diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp index d455552c95..efb380f49f 100644 --- a/src/newgrf_engine.cpp +++ b/src/newgrf_engine.cpp @@ -6,7 +6,7 @@ #include "openttd.h" #include "variables.h" #include "debug.h" -#include "engine.h" +#include "engine_func.h" #include "train.h" #include "player_func.h" #include "player_base.h" diff --git a/src/newgrf_sound.cpp b/src/newgrf_sound.cpp index 80b4d60606..6c017b377a 100644 --- a/src/newgrf_sound.cpp +++ b/src/newgrf_sound.cpp @@ -5,7 +5,7 @@ #include "stdafx.h" #include "openttd.h" #include "oldpool.h" -#include "engine.h" +#include "engine_func.h" #include "newgrf_callbacks.h" #include "newgrf_engine.h" #include "newgrf_sound.h" diff --git a/src/newgrf_station.h b/src/newgrf_station.h index ff5d82ab0e..6cf164a351 100644 --- a/src/newgrf_station.h +++ b/src/newgrf_station.h @@ -5,7 +5,7 @@ #ifndef NEWGRF_STATION_H #define NEWGRF_STATION_H -#include "engine.h" +#include "engine_type.h" #include "newgrf_callbacks.h" #include "newgrf_cargo.h" #include "tile_type.h" diff --git a/src/oldloader.cpp b/src/oldloader.cpp index 1d7008c17a..a5bf88f714 100644 --- a/src/oldloader.cpp +++ b/src/oldloader.cpp @@ -9,7 +9,6 @@ #include "industry.h" #include "player_func.h" #include "player_base.h" -#include "engine.h" #include "aircraft.h" #include "roadveh.h" #include "ship.h" diff --git a/src/openttd.cpp b/src/openttd.cpp index 70e2a1b51a..f11e10f7d7 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -28,7 +28,6 @@ #include "town.h" #include "industry.h" #include "news_func.h" -#include "engine.h" #include "fileio.h" #include "fios.h" #include "airport.h" diff --git a/src/player_base.h b/src/player_base.h index 43e6460eb9..52c96f7651 100644 --- a/src/player_base.h +++ b/src/player_base.h @@ -8,7 +8,7 @@ #include "road_type.h" #include "rail_type.h" #include "date_type.h" -#include "engine.h" +#include "engine_type.h" #include "livery.h" #include "autoreplace_type.h" #include "economy_type.h" diff --git a/src/players.cpp b/src/players.cpp index 85a5ef5d00..bb2fff8105 100644 --- a/src/players.cpp +++ b/src/players.cpp @@ -4,7 +4,7 @@ */ #include "stdafx.h" #include "openttd.h" -#include "engine.h" +#include "engine_func.h" #include "player_func.h" #include "player_gui.h" #include "town.h" @@ -14,7 +14,6 @@ #include "network/network.h" #include "network/network_internal.h" #include "variables.h" -#include "engine.h" #include "ai/ai.h" #include "player_face.h" #include "group.h" diff --git a/src/rail.cpp b/src/rail.cpp index aeda9ab980..fe799f09de 100644 --- a/src/rail.cpp +++ b/src/rail.cpp @@ -13,6 +13,7 @@ #include "date_func.h" #include "player_func.h" #include "player_base.h" +#include "engine_func.h" /* XXX: Below 3 tables store duplicate data. Maybe remove some? */ diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 2828bfafe6..8e1e0ba5d8 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -17,7 +17,7 @@ #include "viewport_func.h" #include "command_func.h" #include "pathfind.h" -#include "engine.h" +#include "engine_func.h" #include "town.h" #include "sprite.h" #include "depot.h" diff --git a/src/road.cpp b/src/road.cpp index 2a7241af13..e96e79358d 100644 --- a/src/road.cpp +++ b/src/road.cpp @@ -9,7 +9,7 @@ #include "genworld.h" #include "player_func.h" #include "player_base.h" -#include "engine.h" +#include "engine_func.h" #include "settings_type.h" #include "date_func.h" diff --git a/src/roadveh.h b/src/roadveh.h index fa6df94eb8..60e6d5a9d3 100644 --- a/src/roadveh.h +++ b/src/roadveh.h @@ -6,7 +6,7 @@ #define ROADVEH_H #include "vehicle_base.h" -#include "engine.h" +#include "engine_func.h" #include "economy_func.h" enum RoadVehicleSubType { diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 9be636077f..2314a9aa10 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -11,7 +11,6 @@ #include "roadveh.h" #include "station_map.h" #include "timetable.h" -#include "engine.h" #include "command_func.h" #include "station_base.h" #include "news_func.h" diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index ca2592a198..e1d9ef4bc3 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -9,7 +9,7 @@ #include "window_gui.h" #include "textbuf_gui.h" #include "command_func.h" -#include "engine.h" +#include "engine_func.h" #include "screenshot.h" #include "newgrf.h" #include "network/network.h" diff --git a/src/ship.h b/src/ship.h index 2d96cbe1d3..2a90ed0b48 100644 --- a/src/ship.h +++ b/src/ship.h @@ -6,7 +6,7 @@ #define SHIP_H #include "vehicle_base.h" -#include "engine.h" +#include "engine_func.h" #include "economy_func.h" void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2); diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index d9147c4ce7..ae7bea8b4b 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -13,7 +13,7 @@ #include "station_map.h" #include "station_base.h" #include "news_func.h" -#include "engine.h" +#include "engine_func.h" #include "player_func.h" #include "player_base.h" #include "npf.h" diff --git a/src/strings.cpp b/src/strings.cpp index b2d0d0b826..62e8224380 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -36,6 +36,7 @@ #include "fios.h" #include "settings_type.h" #include "video/video_driver.hpp" +#include "engine_func.h" #include "table/strings.h" #include "table/control_codes.h" diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp index 3a28abc407..935f39afce 100644 --- a/src/terraform_gui.cpp +++ b/src/terraform_gui.cpp @@ -17,7 +17,7 @@ #include "variables.h" #include "functions.h" #include "sound_func.h" -#include "station.h" +#include "station_base.h" #include "unmovable_map.h" #include "textbuf_gui.h" #include "genworld.h" diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index 85db9f1d14..887929b699 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -6,7 +6,6 @@ #include "openttd.h" #include "variables.h" #include "command_func.h" -#include "engine.h" #include "gui.h" #include "window_gui.h" #include "textbuf_gui.h" diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 9700048a98..826861fe47 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -18,7 +18,7 @@ #include "npf.h" #include "station_base.h" #include "news_func.h" -#include "engine.h" +#include "engine_func.h" #include "player_func.h" #include "player_base.h" #include "depot.h" diff --git a/src/train_gui.cpp b/src/train_gui.cpp index 6f42a66dcf..fd46a10bb9 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -17,6 +17,7 @@ #include "vehicle_func.h" #include "settings_type.h" #include "order_func.h" +#include "engine_func.h" #include "table/sprites.h" #include "table/strings.h" diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index b65be5fb6a..0260798ed8 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -34,6 +34,7 @@ #include "signal_func.h" #include "tunnelbridge.h" #include "player_base.h" +#include "engine_func.h" #include "table/sprites.h" #include "table/strings.h" diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 6d2d189888..349ef1b5b6 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -17,7 +17,6 @@ #include "command_func.h" #include "saveload.h" #include "player_func.h" -#include "engine.h" #include "debug.h" #include "vehicle_gui.h" #include "depot.h" diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index e217ecd0b8..25cd8c81b2 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -6,7 +6,6 @@ #include "openttd.h" #include "debug.h" #include "player_func.h" -#include "engine.h" #include "gui.h" #include "window_gui.h" #include "textbuf_gui.h"