1
0
Fork 0

Fix #8039: [AI/GS] SetOrderFlags and GetOrderDestination didn't work for oil rigs

pull/8085/head
SamuXarick 2020-03-20 10:46:57 +00:00 committed by Charles Pigott
parent 18ad0fa983
commit a82dca883f
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ static int ScriptOrderPositionToRealOrderPosition(VehicleID vehicle_id, ScriptOr
}
} else if (st->ship_station.tile != INVALID_TILE) {
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) {
return st->bus_stops->xy;