Avoid unnecessary viewport redraws for unused tile loop house triggers
This commit is contained in:
@@ -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);
|
||||
|
@@ -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[] = {
|
||||
/**
|
||||
|
Reference in New Issue
Block a user