(svn r11992) -Fix (r9905): When building two rail stations close to each other (with control) so they looked like one long track trains would see them as one (spotted and fixed by eddi)

This commit is contained in:
bjarni 2008-01-27 02:09:46 +00:00
parent 97a1cbdfa1
commit 7b29dcde3c
1 changed files with 1 additions and 0 deletions

View File

@ -190,6 +190,7 @@ static inline bool IsCompatibleTrainStationTile(TileIndex t1, TileIndex t2)
IsRailwayStationTile(t1) &&
IsCompatibleRail(GetRailType(t1), GetRailType(t2)) &&
GetRailStationAxis(t1) == GetRailStationAxis(t2) &&
GetStationIndex(t1) == GetStationIndex(t2) &&
!IsStationTileBlocked(t1);
}