mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r24587) -Codechange: Improve coding style (Juanjo)
This commit is contained in:
parent
e6167ff30f
commit
ddf597e618
@ -86,13 +86,13 @@ struct CFollowTrackT
|
|||||||
m_railtypes = railtype_override;
|
m_railtypes = railtype_override;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline static TransportType TT() {return Ttr_type_;}
|
inline static TransportType TT() { return Ttr_type_; }
|
||||||
inline static bool IsWaterTT() {return TT() == TRANSPORT_WATER;}
|
inline static bool IsWaterTT() { return TT() == TRANSPORT_WATER; }
|
||||||
inline static bool IsRailTT() {return TT() == TRANSPORT_RAIL;}
|
inline static bool IsRailTT() { return TT() == TRANSPORT_RAIL; }
|
||||||
inline bool IsTram() {return IsRoadTT() && HasBit(RoadVehicle::From(m_veh)->compatible_roadtypes, ROADTYPE_TRAM);}
|
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 IsRoadTT() { return TT() == TRANSPORT_ROAD; }
|
||||||
inline static bool Allow90degTurns() {return T90deg_turns_allowed_;}
|
inline static bool Allow90degTurns() { return T90deg_turns_allowed_; }
|
||||||
inline static bool DoTrackMasking() {return IsRailTT() && Tmask_reserved_tracks;}
|
inline static bool DoTrackMasking() { return IsRailTT() && Tmask_reserved_tracks; }
|
||||||
|
|
||||||
/** Tests if a tile is a road tile with a single tramtrack (tram can reverse) */
|
/** Tests if a tile is a road tile with a single tramtrack (tram can reverse) */
|
||||||
inline DiagDirection GetSingleTramBit(TileIndex tile)
|
inline DiagDirection GetSingleTramBit(TileIndex tile)
|
||||||
|
Loading…
Reference in New Issue
Block a user