summaryrefslogtreecommitdiff
path: root/industry_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 /industry_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 'industry_cmd.c')
-rw-r--r--industry_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/industry_cmd.c b/industry_cmd.c
index de8bdffa9..41455b6b0 100644
--- a/industry_cmd.c
+++ b/industry_cmd.c
@@ -1479,7 +1479,7 @@ static void DoCreateNewIndustry(Industry *i, uint tile, int type, const Industry
DoCommandByTile(cur_tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);
- _map_type_and_height[cur_tile] = (_map_type_and_height[cur_tile]&~0xF0) | (MP_INDUSTRY<<4);
+ SetTileType(cur_tile, MP_INDUSTRY);
_map5[cur_tile] = it->map5;
_map2[cur_tile] = i->index;
_map_owner[cur_tile] = _generating_world ? 0x1E : 0; /* maturity */