1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-18 18:02:37 +01:00

Codechange: Use enum class for RailTileType

This commit is contained in:
Peter Nelson
2025-11-17 19:49:34 +00:00
committed by Peter Nelson
parent e8ba7d0a08
commit 0f5a4290df
10 changed files with 41 additions and 41 deletions

View File

@@ -721,7 +721,7 @@ CommandCost CmdBuildRoad(DoCommandFlags flags, TileIndex tile, RoadBits pieces,
if (ret.Failed()) return ret;
}
if (GetRailTileType(tile) != RAIL_TILE_NORMAL) goto do_clear;
if (GetRailTileType(tile) != RailTileType::Normal) goto do_clear;
if (RoadNoLevelCrossing(rt)) {
return CommandCost(STR_ERROR_CROSSING_DISALLOWED_ROAD);