mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 11:23:21 +00:00
Fix: Do not redraw vehicle lists when skip order command is tested.
This commit is contained in:
parent
443e31faab
commit
460a216d69
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user