diff options
author | rubidium <rubidium@openttd.org> | 2007-12-18 20:58:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-18 20:58:12 +0000 |
commit | 7db6c7db388214e663ff4c1e6962b40667b05c21 (patch) | |
tree | 09f3e92b9bd507f569b27ca62c6f6c99d983043d | |
parent | e4ef359f47469b426b8e4a06fe0da867f03e82f3 (diff) | |
download | openttd-7db6c7db388214e663ff4c1e6962b40667b05c21.tar.xz |
(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.
-rw-r--r-- | src/autoreplace_gui.cpp | 1 | ||||
-rw-r--r-- | src/bridge_map.h | 2 | ||||
-rw-r--r-- | src/elrail.cpp | 2 | ||||
-rw-r--r-- | src/engine.h | 2 | ||||
-rw-r--r-- | src/newgrf.cpp | 1 | ||||
-rw-r--r-- | src/newgrf_house.cpp | 1 | ||||
-rw-r--r-- | src/pathfind.cpp | 2 | ||||
-rw-r--r-- | src/player.h | 2 | ||||
-rw-r--r-- | src/track_func.h | 2 | ||||
-rw-r--r-- | src/track_type.h | 2 | ||||
-rw-r--r-- | src/vehicle.cpp | 2 |
11 files changed, 11 insertions, 8 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp index b25efa9ff..a91c0f431 100644 --- 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; diff --git a/src/bridge_map.h b/src/bridge_map.h index 13030092f..3ec527c3c 100644 --- 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" diff --git a/src/elrail.cpp b/src/elrail.cpp index 1aedb056a..4e529869d 100644 --- 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" diff --git a/src/engine.h b/src/engine.h index 1ef09d3db..9ac4cd5b9 100644 --- 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" diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 3c7b887b3..d372821be 100644 --- 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) diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index 169396245..2b770fede 100644 --- 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" diff --git a/src/pathfind.cpp b/src/pathfind.cpp index 988c2b737..6fc812c89 100644 --- 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" diff --git a/src/player.h b/src/player.h index 620ea7d5b..decfc15f4 100644 --- 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" diff --git a/src/track_func.h b/src/track_func.h index 813f211b1..3f36129f6 100644 --- a/src/track_func.h +++ b/src/track_func.h @@ -514,4 +514,4 @@ static inline bool IsStraightRoadTrackdir(Trackdir dir) return (dir & 0x06) == 0; } -#endif /* RAIL_H */ +#endif /* TRACK_FUNC_H */ diff --git a/src/track_type.h b/src/track_type.h index b40795de5..bd8ccde15 100644 --- a/src/track_type.h +++ b/src/track_type.h @@ -122,4 +122,4 @@ template <> struct EnumPropsT<TrackdirBits> : MakeEnumPropsT<TrackdirBits, uint1 typedef TinyEnumT<TrackdirBits> TrackdirBitsShort; DECLARE_ENUM_AS_BIT_SET(TrackdirBits); -#endif /* RAIL_H */ +#endif /* TRACK_TYPE_H */ diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 7b9c8bc9c..b35e3afd9 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -28,7 +28,7 @@ #include "vehicle_gui.h" #include "depot.h" #include "station.h" -#include "rail.h" +#include "rail_type.h" #include "train.h" #include "aircraft.h" #include "industry_map.h" |