Debug: Add vehicle cargo type, refit mask and age period to debug window

This commit is contained in:
Jonathan G Rennison
2021-12-18 11:49:31 +00:00
parent 17d949980f
commit 7b0c083c11

View File

@@ -369,6 +369,9 @@ class NIHVehicle : public NIHelper {
ymd.year, ymd.month + 1, ymd.day, e->age, e->info.base_life, e->duration_phase_1, e->duration_phase_2, e->duration_phase_3,
e->duration_phase_1 + e->duration_phase_2 + e->duration_phase_3);
output.print(buffer);
seprintf(buffer, lastof(buffer), " Cargo type: %u, Refit mask: 0x" OTTD_PRINTFHEX64 ", Cargo age period: %u",
e->info.cargo_type, e->info.refit_mask, e->info.cargo_age_period);
output.print(buffer);
if (e->type == VEH_TRAIN) {
const RailtypeInfo *rti = GetRailTypeInfo(e->u.rail.railtype);
seprintf(buffer, lastof(buffer), " Railtype: %u (0x" OTTD_PRINTFHEX64 "), Compatible: 0x" OTTD_PRINTFHEX64 ", Powered: 0x" OTTD_PRINTFHEX64 ", All compatible: 0x" OTTD_PRINTFHEX64,