Codechange: Use EnumBitSet for IndustryLifeTypes.

This commit is contained in:
Peter Nelson
2025-02-07 12:30:06 +00:00
committed by Peter Nelson
parent 2bb3f368e3
commit 1916454776
5 changed files with 47 additions and 45 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ static bool CMSAMine(TileIndex tile)
const Industry *ind = Industry::GetByTile(tile);
/* No extractive industry */
if ((GetIndustrySpec(ind->type)->life_type & INDUSTRYLIFE_EXTRACTIVE) == 0) return false;
if (!GetIndustrySpec(ind->type)->life_type.Test(IndustryLifeType::Extractive)) return false;
for (const auto &p : ind->produced) {
/* The industry extracts something non-liquid, i.e. no oil or plastic, so it is a mine.