summaryrefslogtreecommitdiff
path: root/station_map.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-04 11:45:54 +0000
committercelestar <celestar@openttd.org>2006-04-04 11:45:54 +0000
commit3ff5b879d09e1ef5be16dfca23b83bb8490b94be (patch)
treebb4a9b5a4706ca538112e0efef510bf3f30e46a4 /station_map.h
parent8b151d8faa1c059ec874427c1d25f5783eeee6d4 (diff)
downloadopenttd-3ff5b879d09e1ef5be16dfca23b83bb8490b94be.tar.xz
(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
Diffstat (limited to 'station_map.h')
-rw-r--r--station_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_map.h b/station_map.h
index c60a69b39..b91b00109 100644
--- a/station_map.h
+++ b/station_map.h
@@ -81,7 +81,7 @@ static inline bool IsCompatibleTrainStationTile(TileIndex t1, TileIndex t2)
assert(IsRailwayStationTile(t2));
return
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?
}