Codechange: Use enum class for RailTileType
This commit is contained in:
@@ -104,7 +104,7 @@ Axis GetAxisForNewRailWaypoint(TileIndex tile)
|
||||
if (IsRailWaypointTile(tile)) return GetRailStationAxis(tile);
|
||||
|
||||
/* Non-plain rail type, no valid axis for waypoints. */
|
||||
if (!IsTileType(tile, MP_RAILWAY) || GetRailTileType(tile) != RAIL_TILE_NORMAL) return INVALID_AXIS;
|
||||
if (!IsTileType(tile, MP_RAILWAY) || GetRailTileType(tile) != RailTileType::Normal) return INVALID_AXIS;
|
||||
|
||||
switch (GetTrackBits(tile)) {
|
||||
case TRACK_BIT_X: return AXIS_X;
|
||||
|
||||
Reference in New Issue
Block a user