Codechange: Use EnumBitSet for TownFlags. (#14651)

This commit is contained in:
Peter Nelson
2025-09-22 20:04:55 +01:00
committed by dP
parent 148940cca6
commit 8dd7c6dba4
5 changed files with 31 additions and 35 deletions
+1 -1
View File
@@ -453,7 +453,7 @@ public:
tr.top += GetCharacterHeight(FS_NORMAL);
}
if (HasBit(this->town->flags, TOWN_IS_GROWING)) {
if (this->town->flags.Test(TownFlag::IsGrowing)) {
DrawString(tr, GetString(this->town->fund_buildings_months == 0 ? STR_TOWN_VIEW_TOWN_GROWS_EVERY : STR_TOWN_VIEW_TOWN_GROWS_EVERY_FUNDED, RoundDivSU(this->town->growth_rate + 1, Ticks::DAY_TICKS)));
tr.top += GetCharacterHeight(FS_NORMAL);
} else {