diff options
author | J0anJosep <juanjo.ng.83@gmail.com> | 2018-04-29 13:50:52 +0200 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-04-30 18:55:04 +0200 |
commit | 79a551a83ceda50b1b95d2a5519dbcbc6f700d2b (patch) | |
tree | 7723211f8f91fe6cc90630dbef27931ae437922f /src/water_cmd.cpp | |
parent | 944f785be8e0d994552d96e2990232cba094efdd (diff) | |
download | openttd-79a551a83ceda50b1b95d2a5519dbcbc6f700d2b.tar.xz |
Codechange: Use TileAddBy(Diag)Dir when possible.
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r-- | src/water_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index 07b6a9550..737257a82 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -1218,7 +1218,7 @@ void ConvertGroundTilesIntoWaterTiles() default: uint dir; FOR_EACH_SET_BIT(dir, _flood_from_dirs[slope & ~SLOPE_STEEP]) { - TileIndex dest = TILE_ADD(tile, TileOffsByDir((Direction)dir)); + TileIndex dest = TileAddByDir(tile, (Direction)dir); Slope slope_dest = GetTileSlope(dest) & ~SLOPE_STEEP; if (slope_dest == SLOPE_FLAT || IsSlopeWithOneCornerRaised(slope_dest)) { MakeShore(tile); |