mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 12:06:41 +00:00
Codechange: make FloodingBehaviour a scoped enum (#15632)
This commit is contained in:
+1
-1
@@ -391,7 +391,7 @@ Foundation GetRailFoundation(Slope tileh, TrackBits bits)
|
||||
static CommandCost CheckRailSlope(Slope tileh, TrackBits rail_bits, TrackBits existing, TileIndex tile)
|
||||
{
|
||||
/* don't allow building on the lower side of a coast */
|
||||
if (GetFloodingBehaviour(tile) != FLOOD_NONE) {
|
||||
if (GetFloodingBehaviour(tile) != FloodingBehaviour::None) {
|
||||
if (!IsSteepSlope(tileh) && ((~_valid_tracks_on_leveled_foundation[tileh] & (rail_bits | existing)) != 0)) return CommandCost(STR_ERROR_CAN_T_BUILD_ON_WATER);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user