mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-11 06:44:04 +01:00
Fix #8039: [AI/GS] SetOrderFlags and GetOrderDestination didn't work for oil rigs
This commit is contained in:
parent
18ad0fa983
commit
a82dca883f
@ -261,7 +261,7 @@ static int ScriptOrderPositionToRealOrderPosition(VehicleID vehicle_id, ScriptOr
|
|||||||
}
|
}
|
||||||
} else if (st->ship_station.tile != INVALID_TILE) {
|
} else if (st->ship_station.tile != INVALID_TILE) {
|
||||||
TILE_AREA_LOOP(t, st->ship_station) {
|
TILE_AREA_LOOP(t, st->ship_station) {
|
||||||
if (IsDockTile(t) && GetStationIndex(t) == st->index) return t;
|
if (IsTileType(t, MP_STATION) && (IsDock(t) || IsOilRig(t)) && GetStationIndex(t) == st->index) return t;
|
||||||
}
|
}
|
||||||
} else if (st->bus_stops != nullptr) {
|
} else if (st->bus_stops != nullptr) {
|
||||||
return st->bus_stops->xy;
|
return st->bus_stops->xy;
|
||||||
|
Loading…
Reference in New Issue
Block a user