From 1fd620fd1f76f84314bfdace7440804ecad94b5c Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 19 Apr 2021 22:47:55 +0100 Subject: [PATCH] Debug: Show untranslated house IDs in debug window --- src/table/newgrf_debug_data.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/table/newgrf_debug_data.h b/src/table/newgrf_debug_data.h index 7616837f3d..1505c8eda4 100644 --- a/src/table/newgrf_debug_data.h +++ b/src/table/newgrf_debug_data.h @@ -441,6 +441,14 @@ class NIHHouse : public NIHelper { print(buffer); seprintf(buffer, lastof(buffer), " animation: frames: %u, status: %u, speed: %u, triggers: 0x%X", hs->animation.frames, hs->animation.status, hs->animation.speed, hs->animation.triggers); print(buffer); + + if (GetCleanHouseType(index) != GetHouseType(index)) { + seprintf(buffer, lastof(buffer), " Untranslated House Type: %u", GetCleanHouseType(index)); + print(buffer); + hs = HouseSpec::Get(GetCleanHouseType(index)); + seprintf(buffer, lastof(buffer), " building_flags: 0x%X", hs->building_flags); + print(buffer); + } } };