diff options
author | rubidium <rubidium@openttd.org> | 2008-12-28 14:37:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-28 14:37:19 +0000 |
commit | 87e5a8b52bf2f200467d65c1e17fd79548d31129 (patch) | |
tree | 36bbbb5d389d41119ee184607bc012666dda7812 /src/terraform_cmd.cpp | |
parent | 53679122af1e0a68bbe4e9c1f73526dd7e118df6 (diff) | |
download | openttd-87e5a8b52bf2f200467d65c1e17fd79548d31129.tar.xz |
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
Diffstat (limited to 'src/terraform_cmd.cpp')
-rw-r--r-- | src/terraform_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terraform_cmd.cpp b/src/terraform_cmd.cpp index fe8d96570..cc71f786a 100644 --- a/src/terraform_cmd.cpp +++ b/src/terraform_cmd.cpp @@ -223,7 +223,7 @@ static CommandCost TerraformTileHeight(TerraformerState *ts, TileIndex tile, int * @param p2 direction; eg up (non-zero) or down (zero) * @return error or cost of terraforming */ -CommandCost CmdTerraformLand(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) +CommandCost CmdTerraformLand(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text) { /* Make an extra check for map-bounds cause we add tiles to the originating tile */ if (tile + TileDiffXY(1, 1) >= MapSize()) return CMD_ERROR; @@ -347,7 +347,7 @@ CommandCost CmdTerraformLand(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) * @param p2 height difference; eg raise (+1), lower (-1) or level (0) * @return error or cost of terraforming */ -CommandCost CmdLevelLand(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) +CommandCost CmdLevelLand(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, const char *text) { if (p1 >= MapSize()) return CMD_ERROR; |