1
0
Fork 0

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

pull/8053/head
SamuXarick 2020-03-20 10:46:57 +00:00 committed by Niels Martin Hansen
parent 0b5e0522b6
commit 4d4005d8b7
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) { } 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;