summaryrefslogtreecommitdiff
path: root/station_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 /station_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 'station_cmd.c')
-rw-r--r--station_cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/station_cmd.c b/station_cmd.c
index aeea6b9e6..cde11f1e9 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -2643,8 +2643,7 @@ void BuildOilRig(uint tile)
if (!GenerateStationName(st, tile, 2))
return;
- _map_type_and_height[tile] &= 0xF;
- _map_type_and_height[tile] |= MP_STATION << 4;
+ SetTileType(tile, MP_STATION);
_map5[tile] = 0x4B;
_map_owner[tile] = OWNER_NONE;
_map3_lo[tile] = 0;