Codechange: Be consistent with how company masks are set to all.

This commit is contained in:
Peter Nelson
2023-04-05 07:49:41 +01:00
committed by PeterN
parent 08977828cc
commit 65e0b0dcb7
5 changed files with 12 additions and 12 deletions

View File

@@ -286,7 +286,7 @@ RoadTypes ExistingRoadTypes(CompanyID c)
if (!HasBit(e->info.climates, _settings_game.game_creation.landscape)) continue;
/* Check whether available for all potential companies */
if (e->company_avail != (CompanyMask)-1) continue;
if (e->company_avail != MAX_UVALUE(CompanyMask)) continue;
known_roadtypes |= GetRoadTypeInfo(e->u.road.roadtype)->introduces_roadtypes;
}