mirror of https://github.com/OpenTTD/OpenTTD
(svn r4273) -Fix: Removed a problem where trains would stop in the middle of a platform if there were both elrails and convrails along the platform
parent
8b151d8faa
commit
3ff5b879d0
|
@ -81,7 +81,7 @@ static inline bool IsCompatibleTrainStationTile(TileIndex t1, TileIndex t2)
|
||||||
assert(IsRailwayStationTile(t2));
|
assert(IsRailwayStationTile(t2));
|
||||||
return
|
return
|
||||||
IsRailwayStationTile(t1) &&
|
IsRailwayStationTile(t1) &&
|
||||||
GB(_m[t1].m3, 0, 4) == GB(_m[t2].m3, 0, 4) && // same rail type?
|
IsCompatibleRail(GetRailType(t1), GetRailType(t2)) &&
|
||||||
GB(_m[t1].m5, 0, 1) == GB(_m[t2].m5, 0, 1); // same direction?
|
GB(_m[t1].m5, 0, 1) == GB(_m[t2].m5, 0, 1); // same direction?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue