Codechange: Use enum class for RailGroundType.
This commit is contained in:
committed by
Peter Nelson
parent
0f5a4290df
commit
2851c70a59
+1
-1
@@ -58,7 +58,7 @@ WaterClass GetEffectiveWaterClass(TileIndex tile)
|
||||
return WATER_CLASS_CANAL;
|
||||
}
|
||||
if (IsTileType(tile, MP_RAILWAY)) {
|
||||
assert(GetRailGroundType(tile) == RAIL_GROUND_WATER);
|
||||
assert(GetRailGroundType(tile) == RailGroundType::HalfTileWater);
|
||||
return WATER_CLASS_SEA;
|
||||
}
|
||||
NOT_REACHED();
|
||||
|
||||
Reference in New Issue
Block a user