summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
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;