From 90cafa9b15c8d4f174b043dfab2bb1bca61b1505 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 18 Jan 2005 18:41:56 +0000 Subject: (svn r1560) Introduce SetTileType() and SetTileHeight() Replace direct references to _map_type_and_height with these --- industry_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'industry_cmd.c') 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 */ -- cgit v1.2.3-54-g00ecf