(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)
authorbjarni
Sun, 27 Jan 2008 02:09:46 +0000
changeset 8422 4643fb49b1c7
parent 8421 225ce06a3b1e
child 8423 0c0f0370620b
(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)
src/station_map.h
--- a/src/station_map.h	Sat Jan 26 22:41:24 2008 +0000
+++ b/src/station_map.h	Sun Jan 27 02:09:46 2008 +0000
@@ -190,6 +190,7 @@
 		IsRailwayStationTile(t1) &&
 		IsCompatibleRail(GetRailType(t1), GetRailType(t2)) &&
 		GetRailStationAxis(t1) == GetRailStationAxis(t2) &&
+		GetStationIndex(t1) == GetStationIndex(t2) &&
 		!IsStationTileBlocked(t1);
 }