(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:
truelight
2005-02-02 17:30:29 +00:00
parent ab3ed5c431
commit 83a889d678
5 changed files with 82 additions and 43 deletions

View File

@@ -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;