diff options
author | tron <tron@openttd.org> | 2006-03-24 13:31:17 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-24 13:31:17 +0000 |
commit | 05bae48ef892b3205b3cfceadfe6f1871d3c6871 (patch) | |
tree | 4c2227ca2e8c592799085fda417f02d20fb6aa74 /industry_cmd.c | |
parent | 88d27219b47c9398e9aec354ec0bd59ae9912486 (diff) | |
download | openttd-05bae48ef892b3205b3cfceadfe6f1871d3c6871.tar.xz |
(svn r4086) Add MakeIndustry()
Diffstat (limited to 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/industry_cmd.c b/industry_cmd.c index 829c91a9d..a6974f87d 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -1474,10 +1474,8 @@ static void DoCreateNewIndustry(Industry* i, TileIndex tile, int type, const Ind DoCommandByTile(cur_tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR); - SetTileType(cur_tile, MP_INDUSTRY); - _m[cur_tile].m5 = it->map5; - _m[cur_tile].m2 = i->index; - _m[cur_tile].m1 = _generating_world ? 0x1E : 0; /* maturity */ + MakeIndustry(cur_tile, i->index, it->map5); + if (_generating_world) _m[cur_tile].m1 = 0x1E; /* maturity */ } } while ((++it)->ti.x != -0x80); |