(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
authorcelestar
Tue, 04 Apr 2006 11:45:54 +0000
changeset 3443 a13faa90d725
parent 3442 41d828e2d5ab
child 3444 80cfd2f70922
(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
station_map.h
--- a/station_map.h	Tue Apr 04 11:35:52 2006 +0000
+++ b/station_map.h	Tue Apr 04 11:45:54 2006 +0000
@@ -81,7 +81,7 @@
 	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?
 }