summaryrefslogtreecommitdiff
path: root/src/terraform_cmd.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-11-21 23:02:29 +0100
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commitc6d7b98808575f31103121528565ed252a3cfc6c (patch)
tree8514fed6cd3b20bbb065a21cc1820f964508f722 /src/terraform_cmd.h
parente6e69d528921ab731c4c38ee708ff31b7055fd27 (diff)
downloadopenttd-c6d7b98808575f31103121528565ed252a3cfc6c.tar.xz
Codechange: Un-bitstuff landscape commands.
Diffstat (limited to 'src/terraform_cmd.h')
-rw-r--r--src/terraform_cmd.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/terraform_cmd.h b/src/terraform_cmd.h
index 9b5866efa..861e0d994 100644
--- a/src/terraform_cmd.h
+++ b/src/terraform_cmd.h
@@ -11,9 +11,11 @@
#define TERRAFORM_CMD_H
#include "command_type.h"
+#include "map_type.h"
+#include "slope_type.h"
-CommandProc CmdTerraformLand;
-CommandProc CmdLevelLand;
+CommandCost CmdTerraformLand(DoCommandFlag flags, TileIndex tile, Slope slope, bool dir_up);
+CommandCost CmdLevelLand(DoCommandFlag flags, TileIndex tile, TileIndex start_tile, bool diagonal, LevelMode lm);
DEF_CMD_TRAIT(CMD_TERRAFORM_LAND, CmdTerraformLand, CMD_ALL_TILES | CMD_AUTO, CMDT_LANDSCAPE_CONSTRUCTION)
DEF_CMD_TRAIT(CMD_LEVEL_LAND, CmdLevelLand, CMD_ALL_TILES | CMD_AUTO | CMD_NO_TEST, CMDT_LANDSCAPE_CONSTRUCTION) // test run might clear tiles multiple times, in execution that only happens once