Changeset - r14718:570d25b5e9da
[Not reviewed]
master
0 1 0
alberth - 14 years ago 2010-03-04 21:35:26
alberth@openttd.org
(svn r19316) -Fix (r19186): Give correct error when failing to flatten land.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/terraform_cmd.cpp
Show inline comments
 
@@ -385,7 +385,7 @@ CommandCost CmdLevelLand(TileIndex tile,
 
		uint curh = TileHeight(tile);
 
		while (curh != h) {
 
			CommandCost ret = DoCommand(tile, SLOPE_N, (curh > h) ? 0 : 1, flags & ~DC_EXEC, CMD_TERRAFORM_LAND);
 
			if (ret.Failed()) break;
 
			if (ret.Failed()) return (cost.GetCost() == 0) ? ret : cost;
 

	
 
			if (flags & DC_EXEC) {
 
				money -= ret.GetCost();
0 comments (0 inline, 0 general)