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
commitcdfa2d68b135618c8865caebaeb03910250b8bfa (patch)
tree12d252929ee68a0e7efa115413b4bb45a616aa5e /src/terraform_cmd.cpp
parentffa3ec54f9047116495532c20b986f955cf13c4d (diff)
downloadopenttd-cdfa2d68b135618c8865caebaeb03910250b8bfa.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);