Changeset - r23113:e9852a758aa0
[Not reviewed]
master
0 1 0
J0an Josep - 5 years ago 2019-01-03 13:49:37
juanjo.ng.83@gmail.com
Fix #7001: Pathfinders should see standard road stations as tiles where to reverse.
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/pathfinder/follow_track.hpp
Show inline comments
 
@@ -410,8 +410,9 @@ protected:
 
			}
 
		}
 

	
 
		/* single tram bits cause reversing */
 
		if (IsTram() && GetSingleTramBit(m_old_tile) == ReverseDiagDir(m_exitdir)) {
 
		/* Single tram bits and standard road stops cause reversing. */
 
		if (IsRoadTT() && ((IsTram() && GetSingleTramBit(m_old_tile) == ReverseDiagDir(m_exitdir)) ||
 
				(IsStandardRoadStopTile(m_old_tile) && GetRoadStopDir(m_old_tile) == ReverseDiagDir(m_exitdir)))) {
 
			/* reverse */
 
			m_new_tile = m_old_tile;
 
			m_new_td_bits = TrackdirToTrackdirBits(ReverseTrackdir(m_old_td));
0 comments (0 inline, 0 general)