Avoid unnecessary viewport redraws for unused tile loop house triggers

This commit is contained in:
Jonathan G Rennison
2022-11-24 02:38:10 +00:00
parent bcb917d8c2
commit 3d7e5d5369
9 changed files with 48 additions and 6 deletions

View File

@@ -592,7 +592,7 @@ class NIHHouse : public NIHelper {
const HouseSpec *hs = HouseSpec::Get(GetHouseType(index));
seprintf(buffer, lastof(buffer), " building_flags: 0x%X", hs->building_flags);
output.print(buffer);
seprintf(buffer, lastof(buffer), " extra_flags: 0x%X", hs->extra_flags);
seprintf(buffer, lastof(buffer), " extra_flags: 0x%X, ctrl_flags: 0x%X", hs->extra_flags, hs->ctrl_flags);
output.print(buffer);
seprintf(buffer, lastof(buffer), " remove_rating_decrease: %u, minimum_life: %u", hs->remove_rating_decrease, hs->minimum_life);
output.print(buffer);

View File

@@ -1814,7 +1814,7 @@ static_assert(lengthof(_town_draw_tile_data) == (NEW_HOUSE_OFFSET) * 4 * 4);
{ca1, ca2, ca3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, \
{cg1, cg2, cg3, CT_INVALID, CT_INVALID, CT_INVALID, CT_INVALID, CT_INVALID, CT_INVALID, CT_INVALID, CT_INVALID, CT_INVALID, CT_INVALID, CT_INVALID, CT_INVALID, CT_INVALID}, \
bf, ba, true, GRFFileProps(INVALID_HOUSE_ID), 0, {0, 0, 0, 0}, \
16, NO_EXTRA_FLAG, HOUSE_NO_CLASS, {0, 2, 0, 0}, 0, 0, 0}
16, NO_EXTRA_FLAG, HCF_NONE, HOUSE_NO_CLASS, {0, 2, 0, 0}, 0, 0, 0}
/** House specifications from original data */
static const HouseSpec _original_house_specs[] = {
/**