1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-15 16:32:41 +01:00

Codechange: Use EnumBitSet for IndustryTileSpecialFlags.

This commit is contained in:
Peter Nelson
2025-02-06 20:08:52 +00:00
committed by Peter Nelson
parent 1916454776
commit fb70a7fe7e
5 changed files with 9 additions and 10 deletions

View File

@@ -421,7 +421,7 @@ static void AddAcceptedCargo_Industry(TileIndex tile, CargoArray &acceptance, Ca
auto accepts_cargo = itspec->accepts_cargo;
auto cargo_acceptance = itspec->acceptance;
if (itspec->special_flags & INDTILE_SPECIAL_ACCEPTS_ALL_CARGO) {
if (itspec->special_flags.Test(IndustryTileSpecialFlag::AcceptsAllCargo)) {
/* Copy all accepted cargoes from industry itself */
for (const auto &a : ind->accepted) {
auto pos = std::ranges::find(accepts_cargo, a.cargo);