diff options
author | SamuXarick <43006711+SamuXarick@users.noreply.github.com> | 2020-03-20 10:46:57 +0000 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-03-30 08:18:32 +0200 |
commit | 4d4005d8b7455fba8fe4e59dc99727a4caec6edf (patch) | |
tree | dfa843f6dff9bd9d68fdecd2d7546fbf0d027631 /src/script | |
parent | 0b5e0522b6c3842c9b77d5b67b488b4060bc1f82 (diff) | |
download | openttd-4d4005d8b7455fba8fe4e59dc99727a4caec6edf.tar.xz |
Fix #8039: [AI/GS] SetOrderFlags and GetOrderDestination didn't work for oil rigs
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/script_order.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_order.cpp b/src/script/api/script_order.cpp index 3290e5103..5166c0614 100644 --- a/src/script/api/script_order.cpp +++ b/src/script/api/script_order.cpp @@ -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; |