summaryrefslogtreecommitdiff
path: root/src/terraform_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-11-16 14:17:49 +0000
committerrubidium <rubidium@openttd.org>2008-11-16 14:17:49 +0000
commitc2ed9719b32de52c68496d43fc75616b504876bb (patch)
tree12d252929ee68a0e7efa115413b4bb45a616aa5e /src/terraform_cmd.cpp
parent9fdac4e1d0ec3932afd06171ee13ce62c1651319 (diff)
downloadopenttd-c2ed9719b32de52c68496d43fc75616b504876bb.tar.xz
(svn r14582) -Fix [FS#2392]: blank box on cost estimation of levelling a flat area.
-Fix: make levelling, raising and lowering of an area behave the same.
Diffstat (limited to 'src/terraform_cmd.cpp')
-rw-r--r--src/terraform_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/terraform_cmd.cpp b/src/terraform_cmd.cpp
index f35fb8bd5..fe8d96570 100644
--- a/src/terraform_cmd.cpp
+++ b/src/terraform_cmd.cpp
@@ -359,6 +359,7 @@ CommandCost CmdLevelLand(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
/* Check range of destination height */
if (h > MAX_TILE_HEIGHT) return_cmd_error((oldh == 0) ? STR_1003_ALREADY_AT_SEA_LEVEL : STR_1004_TOO_HIGH);
+ if (p2 == 0) _error_message = STR_ALREADY_LEVELLED;
/* make sure sx,sy are smaller than ex,ey */
int ex = TileX(tile);