summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-01-16 21:48:10 +0100
committerErich Eckner <git@eckner.net>2022-01-16 21:58:17 +0100
commit2938ef5cf8d24a7c2db18de842fcd21ca3aebcb0 (patch)
treeb5ec1b9fb55c95ddf20effb1dd7020c9c2ba69cd
parent360fba8f3ec10812983b108c4ec1766532e01478 (diff)
downloadopenttd-underground.tar.xz
whatever - does not help anywaysunderground
-rw-r--r--src/terraform_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terraform_cmd.cpp b/src/terraform_cmd.cpp
index c6c43799a..d1ed0d760 100644
--- a/src/terraform_cmd.cpp
+++ b/src/terraform_cmd.cpp
@@ -251,7 +251,7 @@ std::tuple<CommandCost, Money, TileIndex> CmdTerraformLand(DoCommandFlag flags,
if (pass == 0) {
/* Terrafrom enable only top layer */
if (IsUnderground(tile)) {
- return_cmd_error(STR_ERROR_UNDERGROUND_CAN_T_TERRAFORM);
+ return { CommandCost(STR_ERROR_UNDERGROUND_CAN_T_TERRAFORM), 0, tile };
}
/* Check if bridge would take damage */
if (IsBridgeAbove(t)) {