diff options
author | truelight <truelight@openttd.org> | 2005-02-03 17:22:35 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-02-03 17:22:35 +0000 |
commit | 3eda5e61f7d078e64581afea2859062fb1622617 (patch) | |
tree | be17b2ce20037210425d4757c66ffc50cccc6d77 /oldloader.c | |
parent | aa299a8b6dc3510da51355e7765b3d202fd0ccac (diff) | |
download | openttd-3eda5e61f7d078e64581afea2859062fb1622617.tar.xz |
(svn r1776) -Add: Dynamic stations. You can now have up to 64k of stations
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 6de0c483e..4ad72a72f 100644 --- a/oldloader.c +++ b/oldloader.c @@ -713,6 +713,9 @@ static void FixStation(OldStation *o, int num) if (o->xy == 0) continue; + if (!AddBlockIfNeeded(&_station_pool, i)) + error("Stations: failed loading savegame: too many stations"); + s = GetStation(i); s->xy = o->xy; |