summaryrefslogtreecommitdiff
path: root/terraform_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-10 19:40:43 +0000
committertron <tron@openttd.org>2006-06-10 19:40:43 +0000
commit256cd2341a4f771f19e11dfc3b630185667a0779 (patch)
treee70b3fbc8c9aef4ad11ec9f9a2e7624b8bb0b7f3 /terraform_gui.c
parentea9242eff5ade336aea7834ae3a0e9a88084eaea (diff)
downloadopenttd-256cd2341a4f771f19e11dfc3b630185667a0779.tar.xz
(svn r5218) Remove GenericRaiseLowerLand(). It's not really as generic as the its name suggests, it's just an unnecessary indirection
Diffstat (limited to 'terraform_gui.c')
-rw-r--r--terraform_gui.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/terraform_gui.c b/terraform_gui.c
index 72b2a53a7..102f6c2e7 100644
--- a/terraform_gui.c
+++ b/terraform_gui.c
@@ -27,14 +27,6 @@ void CcTerraform(bool success, TileIndex tile, uint32 p1, uint32 p2)
}
}
-static void GenericRaiseLowerLand(TileIndex tile, int mode)
-{
- if (mode) {
- DoCommandP(tile, 8, (uint32)mode, CcTerraform, CMD_TERRAFORM_LAND | CMD_AUTO | CMD_MSG(STR_0808_CAN_T_RAISE_LAND_HERE));
- } else {
- DoCommandP(tile, 8, (uint32)mode, CcTerraform, CMD_TERRAFORM_LAND | CMD_AUTO | CMD_MSG(STR_0809_CAN_T_LOWER_LAND_HERE));
- }
-}
/** Scenario editor command that generates desert areas */
static void GenerateDesertArea(TileIndex end, TileIndex start)
@@ -145,12 +137,18 @@ void PlaceProc_DemolishArea(TileIndex tile)
static void PlaceProc_RaiseLand(TileIndex tile)
{
- GenericRaiseLowerLand(tile, 1);
+ DoCommandP(
+ tile, SLOPE_N, 1, CcTerraform,
+ CMD_TERRAFORM_LAND | CMD_AUTO | CMD_MSG(STR_0808_CAN_T_RAISE_LAND_HERE)
+ );
}
static void PlaceProc_LowerLand(TileIndex tile)
{
- GenericRaiseLowerLand(tile, 0);
+ DoCommandP(
+ tile, SLOPE_N, 0, CcTerraform,
+ CMD_TERRAFORM_LAND | CMD_AUTO | CMD_MSG(STR_0809_CAN_T_LOWER_LAND_HERE)
+ );
}
void PlaceProc_LevelLand(TileIndex tile)