Fix not being allowed to build docks, ship depots, when removing water is disabled

This commit is contained in:
Jonathan G Rennison
2017-10-03 21:43:15 +01:00
parent 3d629b0dea
commit f03de4bcc1
2 changed files with 7 additions and 4 deletions

View File

@@ -2628,7 +2628,7 @@ CommandCost CmdBuildDock(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
/* Get the water class of the water tile before it is cleared.*/
WaterClass wc = GetWaterClass(flat_tile);
ret = DoCommand(flat_tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
ret = DoCommand(flat_tile, 0, 0, flags | DC_ALLOW_REMOVE_WATER, CMD_LANDSCAPE_CLEAR);
if (ret.Failed()) return ret;
TileIndex adjacent_tile = flat_tile + TileOffsByDiagDir(direction);