Codechange: use EnumBitSet for DisallowedRoadDirections (#15479)

This commit is contained in:
Peter Nelson
2026-04-13 22:48:44 +01:00
committed by GitHub
parent b33b0d92a0
commit 73dafe5021
11 changed files with 44 additions and 44 deletions
+1 -1
View File
@@ -506,7 +506,7 @@ CommandCost CmdBuildSingleRail(DoCommandFlags flags, TileIndex tile, RailType ra
if (IsNormalRoad(tile)) {
if (HasRoadWorks(tile)) return CommandCost(STR_ERROR_ROAD_WORKS_IN_PROGRESS);
if (GetDisallowedRoadDirections(tile) != DRD_NONE) return CommandCost(STR_ERROR_CROSSING_ON_ONEWAY_ROAD);
if (GetDisallowedRoadDirections(tile).Any()) return CommandCost(STR_ERROR_CROSSING_ON_ONEWAY_ROAD);
if (RailNoLevelCrossings(railtype)) return CommandCost(STR_ERROR_CROSSING_DISALLOWED_RAIL);