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 29c5157e36
commit 7baa01b394
7 changed files with 36 additions and 40 deletions
+1 -1
View File
@@ -493,7 +493,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 {