summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2008-01-27 02:09:46 +0000
committerbjarni <bjarni@openttd.org>2008-01-27 02:09:46 +0000
commitf93943ebcf363b9547d8b4035c83b680fa231bb6 (patch)
tree31e30c441949589ce630e30a8e23ec074eda1eff
parentf9f917f205c5c6bd8c9c9f8cdb72f317dcabe0e6 (diff)
downloadopenttd-f93943ebcf363b9547d8b4035c83b680fa231bb6.tar.xz
(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)
-rw-r--r--src/station_map.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/station_map.h b/src/station_map.h
index e6500d377..b4e40ccef 100644
--- a/src/station_map.h
+++ b/src/station_map.h
@@ -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);
}