Add VehicleCache fields to vehicle debug inspect window
This commit is contained in:
@@ -100,6 +100,9 @@ class NIHVehicle : public NIHelper {
|
|||||||
v->cur_real_order_index, v->cur_implicit_order_index, v->cur_timetable_order_index);
|
v->cur_real_order_index, v->cur_implicit_order_index, v->cur_timetable_order_index);
|
||||||
print(buffer);
|
print(buffer);
|
||||||
}
|
}
|
||||||
|
seprintf(buffer, lastof(buffer), " V Cache: max speed: %u, cargo age period: %u, vis effect: %u",
|
||||||
|
v->vcache.cached_max_speed, v->vcache.cached_cargo_age_period, v->vcache.cached_vis_effect);
|
||||||
|
print(buffer);
|
||||||
if (v->IsGroundVehicle()) {
|
if (v->IsGroundVehicle()) {
|
||||||
const GroundVehicleCache &gvc = *(v->GetGroundVehicleCache());
|
const GroundVehicleCache &gvc = *(v->GetGroundVehicleCache());
|
||||||
seprintf(buffer, lastof(buffer), " GV Cache: weight: %u, slope res: %u, max TE: %u, axle res: %u",
|
seprintf(buffer, lastof(buffer), " GV Cache: weight: %u, slope res: %u, max TE: %u, axle res: %u",
|
||||||
|
Reference in New Issue
Block a user