changeset 19678:1b99b0255e3d draft

(svn r24587) -Codechange: Improve coding style (Juanjo)
author frosch <frosch@openttd.org>
date Sat, 13 Oct 2012 08:20:40 +0000
parents 89fe4da0362a
children 31ecdcc74072
files src/pathfinder/follow_track.hpp
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/pathfinder/follow_track.hpp
+++ b/src/pathfinder/follow_track.hpp
@@ -86,13 +86,13 @@
 		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)