mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Debug: Add RV path cache length
This commit is contained in:
parent
67506e3781
commit
3fa92f5d8e
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user