forked from mirror/OpenTTD
(svn r20547) -Change: the way order backups are performed. Now restoring an order doesn't require up to 765 commands.
This commit is contained in:
@@ -27,12 +27,14 @@ Depot::~Depot()
|
||||
{
|
||||
if (CleaningPool()) return;
|
||||
|
||||
/* Clear the order backup. */
|
||||
OrderBackup::Reset(this->xy, false);
|
||||
|
||||
/* Clear the depot from all order-lists */
|
||||
RemoveOrderFromAllVehicles(OT_GOTO_DEPOT, this->index);
|
||||
|
||||
/* Delete the depot-window */
|
||||
DeleteWindowById(WC_VEHICLE_DEPOT, this->xy);
|
||||
OrderBackup::Reset(this->xy);
|
||||
|
||||
/* Delete the depot list */
|
||||
WindowNumber wno = (this->index << 16) | VLW_DEPOT_LIST | GetTileOwner(this->xy);
|
||||
|
Reference in New Issue
Block a user