mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Debug: Show house min/max years
This commit is contained in:
parent
eb9d71ab2a
commit
3f5e10ab38
@ -977,6 +977,14 @@ class NIHHouse : public NIHelper {
|
||||
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);
|
||||
output.print(buffer);
|
||||
|
||||
{
|
||||
char *b = buffer + seprintf(buffer, lastof(buffer), " min year: %d", hs->min_year.base());
|
||||
if (hs->max_year < CalTime::MAX_YEAR) {
|
||||
seprintf(b, lastof(buffer), ", max year %d", hs->max_year.base());
|
||||
}
|
||||
output.print(buffer);
|
||||
}
|
||||
|
||||
if (GetCleanHouseType(index) != GetHouseType(index)) {
|
||||
hs = HouseSpec::Get(GetCleanHouseType(index));
|
||||
b = buffer + seprintf(buffer, lastof(buffer), " Untranslated House Type: %u", GetCleanHouseType(index));
|
||||
|
Loading…
Reference in New Issue
Block a user