diff options
author | J0anJosep <juanjo.ng.83@gmail.com> | 2021-11-06 23:04:33 +0100 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-11-07 13:23:29 +0100 |
commit | d0655a48bab31903068d6e0f94323da8a8bda94d (patch) | |
tree | 5a1c4f9937fdad4f44681bd8807a1cab0d88e9de /src | |
parent | 8c558d74a59fe10061bb16b83d708ad8e65eb020 (diff) | |
download | openttd-d0655a48bab31903068d6e0f94323da8a8bda94d.tar.xz |
Fix: Do not redraw vehicle lists when skip order command is tested.
Diffstat (limited to 'src')
-rw-r--r-- | src/order_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index f6e7f77a4..f282ca12b 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1136,11 +1136,11 @@ CommandCost CmdSkipToOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 v->UpdateRealOrderIndex(); InvalidateVehicleOrder(v, VIWD_MODIFY_ORDERS); - } - /* We have an aircraft/ship, they have a mini-schedule, so update them all */ - if (v->type == VEH_AIRCRAFT) SetWindowClassesDirty(WC_AIRCRAFT_LIST); - if (v->type == VEH_SHIP) SetWindowClassesDirty(WC_SHIPS_LIST); + /* We have an aircraft/ship, they have a mini-schedule, so update them all */ + if (v->type == VEH_AIRCRAFT) SetWindowClassesDirty(WC_AIRCRAFT_LIST); + if (v->type == VEH_SHIP) SetWindowClassesDirty(WC_SHIPS_LIST); + } return CommandCost(); } |