summaryrefslogtreecommitdiff
path: root/clear_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-18 18:41:56 +0000
committertron <tron@openttd.org>2005-01-18 18:41:56 +0000
commit31d6f87d80bb42c1fbb8841071937e6d86fe9e86 (patch)
tree0e41a8961f8378269224ee774e2ebd64fcf9e349 /clear_cmd.c
parent64b08311b9539e3a805365155c396cec854dd5f5 (diff)
downloadopenttd-31d6f87d80bb42c1fbb8841071937e6d86fe9e86.tar.xz
(svn r1560) Introduce SetTileType() and SetTileHeight()
Replace direct references to _map_type_and_height with these
Diffstat (limited to 'clear_cmd.c')
-rw-r--r--clear_cmd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/clear_cmd.c b/clear_cmd.c
index bc6c89e84..110750041 100644
--- a/clear_cmd.c
+++ b/clear_cmd.c
@@ -303,9 +303,7 @@ int32 CmdTerraformLand(int x, int y, uint32 flags, uint32 p1, uint32 p2)
for(count = ts.modheight_count; count != 0; count--, mod++) {
til = mod->tile;
- // Change tile height
- _map_type_and_height[til] = (_map_type_and_height[til]&~0x0F)|mod->height;
-
+ SetTileHeight(til, mod->height);
TerraformAddDirtyTileAround(&ts, til);
}
}