diff options
author | truelight <truelight@openttd.org> | 2005-02-02 17:30:29 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-02-02 17:30:29 +0000 |
commit | 3df76452cd62895487bcbe4a048ca53d1e24e0e0 (patch) | |
tree | f37dce29ebc098007022941531aab37cff480e31 /oldloader.c | |
parent | 0668a6b485fbe99e4fb465cb9efbd5a42f0a1bf9 (diff) | |
download | openttd-3df76452cd62895487bcbe4a048ca53d1e24e0e0.tar.xz |
(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 ;)
Diffstat (limited to 'oldloader.c')
-rw-r--r-- | oldloader.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/oldloader.c b/oldloader.c index 1b8bca9c2..6de0c483e 100644 --- a/oldloader.c +++ b/oldloader.c @@ -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; |