Debug: Show vehicle cargo subtype in debug window
This commit is contained in:
@@ -120,8 +120,8 @@ class NIHVehicle : public NIHelper {
|
|||||||
v->vcache.cached_max_speed, v->vcache.cached_cargo_age_period, v->vcache.cached_vis_effect);
|
v->vcache.cached_max_speed, v->vcache.cached_cargo_age_period, v->vcache.cached_vis_effect);
|
||||||
print(buffer);
|
print(buffer);
|
||||||
if (v->cargo_type != CT_INVALID) {
|
if (v->cargo_type != CT_INVALID) {
|
||||||
seprintf(buffer, lastof(buffer), " V Cargo: type: %u, cap: %u, transfer: %u, deliver: %u, keep: %u, load: %u",
|
seprintf(buffer, lastof(buffer), " V Cargo: type: %u, sub type: %u, cap: %u, transfer: %u, deliver: %u, keep: %u, load: %u",
|
||||||
v->cargo_type, v->cargo_cap,
|
v->cargo_type, v->cargo_subtype, v->cargo_cap,
|
||||||
v->cargo.ActionCount(VehicleCargoList::MTA_TRANSFER), v->cargo.ActionCount(VehicleCargoList::MTA_DELIVER),
|
v->cargo.ActionCount(VehicleCargoList::MTA_TRANSFER), v->cargo.ActionCount(VehicleCargoList::MTA_DELIVER),
|
||||||
v->cargo.ActionCount(VehicleCargoList::MTA_KEEP), v->cargo.ActionCount(VehicleCargoList::MTA_LOAD));
|
v->cargo.ActionCount(VehicleCargoList::MTA_KEEP), v->cargo.ActionCount(VehicleCargoList::MTA_LOAD));
|
||||||
print(buffer);
|
print(buffer);
|
||||||
|
Reference in New Issue
Block a user