Debug: Add RV path cache length

This commit is contained in:
Jonathan G Rennison 2020-10-26 02:18:46 +00:00
parent 67506e3781
commit 3fa92f5d8e

View File

@ -154,8 +154,11 @@ class NIHVehicle : public NIHelper {
} }
if (v->type == VEH_ROAD) { if (v->type == VEH_ROAD) {
const RoadVehicle *rv = RoadVehicle::From(v); const RoadVehicle *rv = RoadVehicle::From(v);
seprintf(buffer, lastof(buffer), " Overtaking: %u, overtaking_ctr: %u, overtaking threshold: %u, speed: %u", seprintf(buffer, lastof(buffer), " Overtaking: %u, overtaking_ctr: %u, overtaking threshold: %u",
rv->overtaking, rv->overtaking_ctr, rv->GetOvertakingCounterThreshold(), rv->cur_speed); rv->overtaking, rv->overtaking_ctr, rv->GetOvertakingCounterThreshold());
print(buffer);
seprintf(buffer, lastof(buffer), " Speed: %u, path cache length: %u",
rv->cur_speed, (uint) rv->path.size());
print(buffer); print(buffer);
} }
if (v->type == VEH_SHIP) { if (v->type == VEH_SHIP) {