From f681e98f0fe351ad295844b04ac48a3888078ff0 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 5 Sep 2019 20:58:23 +0100 Subject: [PATCH] Debug: Show order indices in vehicle debug/inspection GUI --- src/table/newgrf_debug_data.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/table/newgrf_debug_data.h b/src/table/newgrf_debug_data.h index 72415f46d5..515fbf1809 100644 --- a/src/table/newgrf_debug_data.h +++ b/src/table/newgrf_debug_data.h @@ -95,6 +95,11 @@ class NIHVehicle : public NIHelper { b += seprintf(b, lastof(buffer), " Flags: "); b = v->DumpVehicleFlags(b, lastof(buffer)); print(buffer); + if (v->IsPrimaryVehicle()) { + seprintf(buffer, lastof(buffer), " Order indices: real: %u, implicit: %u, tt: %u", + v->cur_real_order_index, v->cur_implicit_order_index, v->cur_timetable_order_index); + print(buffer); + } if (v->IsGroundVehicle()) { const GroundVehicleCache &gvc = *(v->GetGroundVehicleCache()); seprintf(buffer, lastof(buffer), " GV Cache: weight: %u, slope res: %u, max TE: %u, axle res: %u",