diff options
author | planetmaker <planetmaker@openttd.org> | 2011-02-06 12:16:06 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2011-02-06 12:16:06 +0000 |
commit | afad7920ef3b18e1d6f72e3d269a5f973b6a8cd1 (patch) | |
tree | 3941ca190f77648eb07d7593c762c1cb12bc4d68 /src/water_cmd.cpp | |
parent | 6f730b11246ab085d3b6092175f6785702a756d7 (diff) | |
download | openttd-afad7920ef3b18e1d6f72e3d269a5f973b6a8cd1.tar.xz |
(svn r21993) -Fix (r19720): When building a lock on dry land costs for clearing water were deducted rather than for building canals
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r-- | src/water_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index 6a81e890b..ac7bf5041 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -219,7 +219,7 @@ static CommandCost DoBuildLock(TileIndex tile, DiagDirection dir, DoCommandFlag ret = DoCommand(tile - delta, 0, 0, flags, CMD_LANDSCAPE_CLEAR); if (ret.Failed()) return ret; cost.AddCost(ret); - cost.AddCost(_price[PR_CLEAR_WATER]); + cost.AddCost(_price[PR_BUILD_CANAL]); } if (GetTileSlope(tile - delta, NULL) != SLOPE_FLAT) { return_cmd_error(STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION); @@ -232,7 +232,7 @@ static CommandCost DoBuildLock(TileIndex tile, DiagDirection dir, DoCommandFlag ret = DoCommand(tile + delta, 0, 0, flags, CMD_LANDSCAPE_CLEAR); if (ret.Failed()) return ret; cost.AddCost(ret); - cost.AddCost(_price[PR_CLEAR_WATER]); + cost.AddCost(_price[PR_BUILD_CANAL]); } if (GetTileSlope(tile + delta, NULL) != SLOPE_FLAT) { return_cmd_error(STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION); |