mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
Codechange: Use EnumBitSet for IndustryLifeTypes.
This commit is contained in:
committed by
Peter Nelson
parent
2bb3f368e3
commit
1916454776
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user