diff options
author | yexo <yexo@openttd.org> | 2010-09-05 16:00:36 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-09-05 16:00:36 +0000 |
commit | 0e250f2bdfc8eb7f435f59398766f7774e31610c (patch) | |
tree | 40f51747f1d8d65476c8bfe8e735c8dc53c49307 /src/water_cmd.cpp | |
parent | 323c526a4d344025b3ba30ade5923c0d41431d8c (diff) | |
download | openttd-0e250f2bdfc8eb7f435f59398766f7774e31610c.tar.xz |
(svn r20748) -Fix: overbuilding an object tile with sea under it with a canal didn't take the cost for clearing the sea into account
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 8b17d968f..8f2895eba 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -332,7 +332,7 @@ CommandCost CmdBuildCanal(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 /* can't make water of water! */ if (IsTileType(tile, MP_WATER) && (!IsTileOwner(tile, OWNER_WATER) || wc == WATER_CLASS_SEA)) continue; - ret = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); + ret = DoCommand(tile, 0, 0, flags | DC_FORCE_CLEAR_TILE, CMD_LANDSCAPE_CLEAR); if (ret.Failed()) return ret; cost.AddCost(ret); |