diff options
-rw-r--r-- | station_map.h | 2 |
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? } |