mirror of https://github.com/OpenTTD/OpenTTD
(svn r27418) -Fix [FS#6329] [FS#6379]: Desync due to incorrect storage of segments with different railtype in the YAPF cache. (JGR)
parent
c1c49a0e52
commit
22e6a2590d
|
@ -144,7 +144,12 @@ struct CFollowTrackT
|
||||||
* missing road bit, or inability to connect the
|
* missing road bit, or inability to connect the
|
||||||
* different bits due to slopes. */
|
* different bits due to slopes. */
|
||||||
if (IsRoadTT() && !IsTram() && TryReverse()) return true;
|
if (IsRoadTT() && !IsTram() && TryReverse()) return true;
|
||||||
m_err = EC_NO_WAY;
|
|
||||||
|
/* CanEnterNewTile already set a reason.
|
||||||
|
* Do NOT overwrite it (important for example for EC_RAIL_TYPE).
|
||||||
|
* Only set a reason if CanEnterNewTile was not called */
|
||||||
|
if (m_new_td_bits == TRACKDIR_BIT_NONE) m_err = EC_NO_WAY;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!Allow90degTurns()) {
|
if (!Allow90degTurns()) {
|
||||||
|
|
Loading…
Reference in New Issue