Mercurial > hg > openttd
changeset 8103:1721819ad261 draft
(svn r11664) -Codechange: use more specific ("rail_type.h" instead of "rail.h" that includes way more than only "rail_type.h") includes at some places.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 18 Dec 2007 20:58:12 +0000 |
parents | afb4c7da91df |
children | f5de4e3df221 |
files | src/autoreplace_gui.cpp src/bridge_map.h src/elrail.cpp src/engine.h src/newgrf.cpp src/newgrf_house.cpp src/pathfind.cpp src/player.h src/track_func.h src/track_type.h src/vehicle.cpp |
diffstat | 11 files changed, 11 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/autoreplace_gui.cpp +++ b/src/autoreplace_gui.cpp @@ -16,6 +16,7 @@ #include "vehicle_gui.h" #include "newgrf_engine.h" #include "group.h" +#include "rail.h" static RailType _railtype_selected_in_replace_gui;
--- a/src/bridge_map.h +++ b/src/bridge_map.h @@ -8,7 +8,7 @@ #include "direction_func.h" #include "macros.h" #include "map.h" -#include "rail.h" +#include "rail_type.h" #include "road_map.h" #include "tile.h"
--- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -53,7 +53,7 @@ #include "functions.h" /* We should REALLY get rid of this goddamn file, as it is butt-ugly */ #include "variables.h" /* ... same here */ #include "landscape.h" -#include "rail.h" +#include "rail_type.h" #include "debug.h" #include "tunnel_map.h" #include "road_map.h"
--- a/src/engine.h +++ b/src/engine.h @@ -6,7 +6,7 @@ #define ENGINE_H #include "oldpool.h" -#include "rail.h" +#include "rail_type.h" #include "sound.h" #include "vehicle.h"
--- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -48,6 +48,7 @@ #include "table/landscape_sprite.h" #include "gfxinit.h" #include "fios.h" +#include "rail.h" /* TTDPatch extended GRF format codec * (c) Petr Baudis 2004 (GPL'd)
--- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -10,6 +10,7 @@ #include "viewport.h" #include "landscape.h" #include "date.h" +#include "tile.h" #include "town.h" #include "town_map.h" #include "sound.h"
--- a/src/pathfind.cpp +++ b/src/pathfind.cpp @@ -12,7 +12,7 @@ #include "map.h" #include "tile.h" #include "pathfind.h" -#include "rail.h" +#include "rail_type.h" #include "debug.h" #include "tunnel_map.h" #include "variables.h"
--- a/src/player.h +++ b/src/player.h @@ -7,7 +7,7 @@ #include "oldpool.h" #include "aystar.h" -#include "rail.h" +#include "rail_type.h" #include "road_func.h" #include "engine.h" #include "livery.h"
--- a/src/track_func.h +++ b/src/track_func.h @@ -514,4 +514,4 @@ return (dir & 0x06) == 0; } -#endif /* RAIL_H */ +#endif /* TRACK_FUNC_H */