changeset 8422:b4a6ad2b644b draft

(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)
author bjarni <bjarni@openttd.org>
date Sun, 27 Jan 2008 02:09:46 +0000
parents 65d469298779
children c9e5db937b31
files src/station_map.h
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/station_map.h
+++ b/src/station_map.h
@@ -190,6 +190,7 @@
 		IsRailwayStationTile(t1) &&
 		IsCompatibleRail(GetRailType(t1), GetRailType(t2)) &&
 		GetRailStationAxis(t1) == GetRailStationAxis(t2) &&
+		GetStationIndex(t1) == GetStationIndex(t2) &&
 		!IsStationTileBlocked(t1);
 }