(svn r5218) Remove GenericRaiseLowerLand(). It's not really as generic as the its name suggests, it's just an unnecessary indirection
authortron
Sat, 10 Jun 2006 19:40:43 +0000
changeset 4007 98f6f57d0e0d
parent 4006 6b9b0b4f2214
child 4008 68cc4bba4c2b
(svn r5218) Remove GenericRaiseLowerLand(). It's not really as generic as the its name suggests, it's just an unnecessary indirection
terraform_gui.c
--- a/terraform_gui.c	Sat Jun 10 18:54:28 2006 +0000
+++ b/terraform_gui.c	Sat Jun 10 19:40:43 2006 +0000
@@ -27,14 +27,6 @@
 	}
 }
 
-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 @@
 
 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)