From 80e2ba99fe59be68a309566da1943861831393f0 Mon Sep 17 00:00:00 2001 From: James Ross Date: Fri, 22 Dec 2023 16:13:32 +0000 Subject: [PATCH] Cleanup: Fix bad debug logging with TickCounter --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index e9e468fb61..b509435da8 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2449,7 +2449,7 @@ void Vehicle::UpdateAutomaticSeparation() /* Debug logging can be quite spammy as it prints a line every time a vehicle departs the first manual order */ if (_debug_misc_level >= 4) { SetDParam(0, this->index); - Debug(misc, 4, "Orders for {}: RTT = {} [{:.2f} days, {} veh], separation = {} [{:.2f} days, {} veh, {} queuing] / gap = {} [{:.2f} days], wait = {} [{:.2f} days]", GetString(STR_VEHICLE_NAME), round_trip_time, (float)round_trip_time / Ticks::DAY_TICKS, round_trip_count, separation, (float)separation / Ticks::DAY_TICKS, vehicles, vehicles_queuing, TimerGameTick::counter - last_departure, (float)(TimerGameTick::counter - last_departure) / Ticks::DAY_TICKS, this->first_order_last_departure - TimerGameTick::counter, (float)(this->first_order_last_departure - TimerGameTick::counter) / Ticks::DAY_TICKS); + Debug(misc, 4, "Orders for {}: RTT = {} [{:.2f} days, {} veh], separation = {} [{:.2f} days, {} veh, {} queuing] / gap = {} [{:.2f} days], wait = {} [{:.2f} days]", GetString(STR_VEHICLE_NAME), round_trip_time, (float)round_trip_time / Ticks::DAY_TICKS, round_trip_count, separation, (float)separation / Ticks::DAY_TICKS, vehicles, vehicles_queuing, (int64_t)(TimerGameTick::counter - last_departure), (float)(int64_t)(TimerGameTick::counter - last_departure) / Ticks::DAY_TICKS, this->first_order_last_departure - TimerGameTick::counter, (float)(this->first_order_last_departure - TimerGameTick::counter) / Ticks::DAY_TICKS); } }