mirror of https://github.com/OpenTTD/OpenTTD
Codefix: StationUsesDefaultType always returned false for rail waypoints
parent
cb2f4f319c
commit
81b684aa42
|
@ -960,7 +960,7 @@ static void HandleStationPlacement(TileIndex start, TileIndex end)
|
|||
static bool StationUsesDefaultType(const BaseStation *bst)
|
||||
{
|
||||
for (TileIndex t : bst->train_station) {
|
||||
if (bst->TileBelongsToRailStation(t) && IsRailStation(t) && GetCustomStationSpecIndex(t) == 0) return true;
|
||||
if (bst->TileBelongsToRailStation(t) && HasStationRail(t) && GetCustomStationSpecIndex(t) == 0) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue