forked from mirror/OpenTTD
(svn r1771) -Add: Industries are now dynamic (up to 64k industries). Generating
1kx1k maps should now be much faster, and give more than just oil-stuff ;)
This commit is contained in:
@@ -647,6 +647,9 @@ static void FixIndustry(OldIndustry *o, int num)
|
||||
if (o->xy == 0)
|
||||
continue;
|
||||
|
||||
if (!AddBlockIfNeeded(&_industry_pool, j))
|
||||
error("Industries: failed loading savegame: too many industries");
|
||||
|
||||
i = GetIndustry(j);
|
||||
|
||||
i->xy = o->xy;
|
||||
|
Reference in New Issue
Block a user