diff options
author | frosch <frosch@openttd.org> | 2012-10-13 08:24:28 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-10-13 08:24:28 +0000 |
commit | 9d877e888aaefcbd62b9371b898a28afab434dcf (patch) | |
tree | 6257bd09ab7cef11b10634d5f871dafc2ffe9942 /src | |
parent | 962a7c36307e16753d9c0c4c0c0983771709a240 (diff) | |
download | openttd-9d877e888aaefcbd62b9371b898a28afab434dcf.tar.xz |
(svn r24588) -Codechange: No need to intermingle reservation-checks with railroad checks. (Juanjo)
Diffstat (limited to 'src')
-rw-r--r-- | src/pathfinder/follow_track.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfinder/follow_track.hpp b/src/pathfinder/follow_track.hpp index 74a9ce340..3fdc3f1f8 100644 --- a/src/pathfinder/follow_track.hpp +++ b/src/pathfinder/follow_track.hpp @@ -92,7 +92,7 @@ struct CFollowTrackT 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 bool DoTrackMasking() { return Tmask_reserved_tracks; } /** Tests if a tile is a road tile with a single tramtrack (tram can reverse) */ inline DiagDirection GetSingleTramBit(TileIndex tile) |