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:
committed by
Peter Nelson
parent
1916454776
commit
fb70a7fe7e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user