From 31d6f87d80bb42c1fbb8841071937e6d86fe9e86 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 18 Jan 2005 18:41:56 +0000 Subject: (svn r1560) Introduce SetTileType() and SetTileHeight() Replace direct references to _map_type_and_height with these --- road_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'road_cmd.c') 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; } -- cgit v1.2.3-54-g00ecf