Add command log flag for whether order backups changed

See also: https://github.com/OpenTTD/OpenTTD/issues/9735
This commit is contained in:
Jonathan G Rennison
2021-12-06 18:19:49 +00:00
parent 54b7aa3d1b
commit b75a633dc6
3 changed files with 19 additions and 2 deletions

View File

@@ -22,6 +22,8 @@
OrderBackupPool _order_backup_pool("BackupOrder");
INSTANTIATE_POOL_METHODS(OrderBackup)
uint OrderBackup::update_counter;
/** Free everything that is allocated. */
OrderBackup::~OrderBackup()
{
@@ -33,6 +35,8 @@ OrderBackup::~OrderBackup()
delete o;
o = next;
}
OrderBackup::update_counter++;
}
/**
@@ -72,6 +76,8 @@ OrderBackup::OrderBackup(const Vehicle *v, uint32 user)
this->scheduled_dispatch_max_delay = v->orders.list->GetScheduledDispatchDelay();
}
}
OrderBackup::update_counter++;
}
/**