diff options
author | tron <tron@openttd.org> | 2005-01-18 18:41:56 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-18 18:41:56 +0000 |
commit | 31d6f87d80bb42c1fbb8841071937e6d86fe9e86 (patch) | |
tree | 0e41a8961f8378269224ee774e2ebd64fcf9e349 /industry_cmd.c | |
parent | 64b08311b9539e3a805365155c396cec854dd5f5 (diff) | |
download | openttd-31d6f87d80bb42c1fbb8841071937e6d86fe9e86.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.c | 2 |
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 */ |