summaryrefslogtreecommitdiff
path: root/rail_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
commit90cafa9b15c8d4f174b043dfab2bb1bca61b1505 (patch)
tree0e41a8961f8378269224ee774e2ebd64fcf9e349 /rail_cmd.c
parent0d85b92e434548b2699ef0b007bc70138fe1d44b (diff)
downloadopenttd-90cafa9b15c8d4f174b043dfab2bb1bca61b1505.tar.xz
(svn r1560) Introduce SetTileType() and SetTileHeight()
Replace direct references to _map_type_and_height with these
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 76c14e2bb..9fa64e757 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -369,8 +369,7 @@ need_clear:;
}
if (flags & DC_EXEC) {
- _map_type_and_height[tile] &= 0xF;
- _map_type_and_height[tile] |= MP_RAILWAY << 4;
+ SetTileType(tile, MP_RAILWAY);
_map5[tile] |= rail_bit;
_map2[tile] &= ~RAIL_MAP2LO_GROUND_MASK;