summaryrefslogtreecommitdiff
path: root/src/pathfinder
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-10-13 08:20:40 +0000
committerfrosch <frosch@openttd.org>2012-10-13 08:20:40 +0000
commit962a7c36307e16753d9c0c4c0c0983771709a240 (patch)
tree0866802a4d7e7eacb5a7c39d2698cf640043ab61 /src/pathfinder
parent41e1e8a1751608e1e689ac8a4da73967b408f9e2 (diff)
downloadopenttd-962a7c36307e16753d9c0c4c0c0983771709a240.tar.xz
(svn r24587) -Codechange: Improve coding style (Juanjo)
Diffstat (limited to 'src/pathfinder')
-rw-r--r--src/pathfinder/follow_track.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pathfinder/follow_track.hpp b/src/pathfinder/follow_track.hpp
index 1050521d9..74a9ce340 100644
--- a/src/pathfinder/follow_track.hpp
+++ b/src/pathfinder/follow_track.hpp
@@ -86,13 +86,13 @@ struct CFollowTrackT
m_railtypes = railtype_override;
}
- inline static TransportType TT() {return Ttr_type_;}
- inline static bool IsWaterTT() {return TT() == TRANSPORT_WATER;}
- inline static bool IsRailTT() {return TT() == TRANSPORT_RAIL;}
- inline bool IsTram() {return IsRoadTT() && HasBit(RoadVehicle::From(m_veh)->compatible_roadtypes, ROADTYPE_TRAM);}
- inline static bool IsRoadTT() {return TT() == TRANSPORT_ROAD;}
- inline static bool Allow90degTurns() {return T90deg_turns_allowed_;}
- inline static bool DoTrackMasking() {return IsRailTT() && Tmask_reserved_tracks;}
+ inline static TransportType TT() { return Ttr_type_; }
+ inline static bool IsWaterTT() { return TT() == TRANSPORT_WATER; }
+ inline static bool IsRailTT() { return TT() == TRANSPORT_RAIL; }
+ inline bool IsTram() { return IsRoadTT() && HasBit(RoadVehicle::From(m_veh)->compatible_roadtypes, ROADTYPE_TRAM); }
+ inline static bool IsRoadTT() { return TT() == TRANSPORT_ROAD; }
+ inline static bool Allow90degTurns() { return T90deg_turns_allowed_; }
+ inline static bool DoTrackMasking() { return IsRailTT() && Tmask_reserved_tracks; }
/** Tests if a tile is a road tile with a single tramtrack (tram can reverse) */
inline DiagDirection GetSingleTramBit(TileIndex tile)