Debug: Show untranslated house IDs in debug window

This commit is contained in:
Jonathan G Rennison
2021-04-19 22:47:55 +01:00
parent 8d8076040a
commit 1fd620fd1f

View File

@@ -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);
}
}
};