From 7b445cd436612eb20620fe3251ebb50be5ee9f4f Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 26 Dec 2020 08:51:37 +0000 Subject: [PATCH] Debug: Show vehicle cargo subtype in debug window --- src/table/newgrf_debug_data.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/table/newgrf_debug_data.h b/src/table/newgrf_debug_data.h index 4903706abc..975c60bbcb 100644 --- a/src/table/newgrf_debug_data.h +++ b/src/table/newgrf_debug_data.h @@ -120,8 +120,8 @@ class NIHVehicle : public NIHelper { v->vcache.cached_max_speed, v->vcache.cached_cargo_age_period, v->vcache.cached_vis_effect); print(buffer); if (v->cargo_type != CT_INVALID) { - seprintf(buffer, lastof(buffer), " V Cargo: type: %u, cap: %u, transfer: %u, deliver: %u, keep: %u, load: %u", - v->cargo_type, v->cargo_cap, + 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_subtype, v->cargo_cap, v->cargo.ActionCount(VehicleCargoList::MTA_TRANSFER), v->cargo.ActionCount(VehicleCargoList::MTA_DELIVER), v->cargo.ActionCount(VehicleCargoList::MTA_KEEP), v->cargo.ActionCount(VehicleCargoList::MTA_LOAD)); print(buffer);