From 0400f06d9ed7b991e59c9d85639a6c3b9c524e5d Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 3 Sep 2022 20:48:23 +0100 Subject: [PATCH] Debug: Show industry GRF local ID in debug window --- src/table/newgrf_debug_data.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/table/newgrf_debug_data.h b/src/table/newgrf_debug_data.h index 21ea5bb18e..e75034fcad 100644 --- a/src/table/newgrf_debug_data.h +++ b/src/table/newgrf_debug_data.h @@ -897,6 +897,10 @@ class NIHIndustry : public NIHelper { seprintf(buffer, lastof(buffer), " Layout anim inhibit mask %u: " OTTD_PRINTFHEX64, (uint)i, indsp->layout_anim_masks[i]); output.print(buffer); } + if (indsp->grf_prop.grffile != nullptr) { + seprintf(buffer, lastof(buffer), " GRF local ID: %u", indsp->grf_prop.local_id); + output.print(buffer); + } } }