mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-20 19:06:13 +01:00
Codefix: StationUsesDefaultType always returned false for rail waypoints
This commit is contained in:
parent
cb2f4f319c
commit
81b684aa42
@ -960,7 +960,7 @@ static void HandleStationPlacement(TileIndex start, TileIndex end)
|
|||||||
static bool StationUsesDefaultType(const BaseStation *bst)
|
static bool StationUsesDefaultType(const BaseStation *bst)
|
||||||
{
|
{
|
||||||
for (TileIndex t : bst->train_station) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user