summaryrefslogtreecommitdiff
path: root/road_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 /road_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 'road_cmd.c')
-rw-r--r--road_cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 8d6afb4bc..725bc99bd 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -448,8 +448,7 @@ do_clear:;
if (flags & DC_EXEC) {
if (ti.type != MP_STREET) {
- _map_type_and_height[tile] &= 0xF;
- _map_type_and_height[tile] |= MP_STREET << 4;
+ SetTileType(tile, MP_STREET);
_map5[tile] = 0;
_map_owner[tile] = _current_player;
}