Fix CFollowTrackT::Follow returning EC_NO_WAY instead of EC_RAIL_TYPE.

This can result in YAPF desyncs as this then ends up in the cache as a
ESRB_DEAD_END instead of a ESRB_RAIL_TYPE, which is problematic
when some vehicles can use the rail type but some cannot.
This commit is contained in:
Jonathan G Rennison
2015-10-15 02:08:27 +01:00
parent ee87b1d7d3
commit 09227ef450

View File

@@ -145,7 +145,7 @@ struct CFollowTrackT
* missing road bit, or inability to connect the
* different bits due to slopes. */
if (IsRoadTT() && !IsTram() && TryReverse()) return true;
m_err = EC_NO_WAY;
if (m_new_td_bits == TRACKDIR_BIT_NONE) m_err = EC_NO_WAY;
return false;
}
if (!Allow90degTurns()) {