Debug: Extend random debug logging to also include state checksum updates

This commit is contained in:
Jonathan G Rennison
2021-01-18 00:58:43 +00:00
parent 4f44540eb9
commit aacb70d371
10 changed files with 37 additions and 2 deletions

View File

@@ -716,6 +716,7 @@ static DisasterVehicleTickProc * const _disastervehicle_tick_procs[] = {
bool DisasterVehicle::Tick()
{
DEBUG_UPDATESTATECHECKSUM("DisasterVehicle::Tick: v: %u, x: %d, y: %d", this->index, this->x_pos, this->y_pos);
UpdateStateChecksum((((uint64) this->x_pos) << 32) | this->y_pos);
return _disastervehicle_tick_procs[this->subtype](this);
}