Codechange: Use enum class for RailGroundType.

This commit is contained in:
Peter Nelson
2025-11-17 19:49:36 +00:00
committed by Peter Nelson
parent 0f5a4290df
commit 2851c70a59
7 changed files with 89 additions and 89 deletions

View File

@@ -133,7 +133,7 @@ void SetWaterClassDependingOnSurroundings(Tile t, bool include_invalid_water_cla
case MP_RAILWAY:
/* Shore or flooded halftile */
has_water |= (GetRailGroundType(neighbour) == RAIL_GROUND_WATER);
has_water |= (GetRailGroundType(neighbour) == RailGroundType::HalfTileWater);
break;
case MP_TREES: