(svn r1783) -Add: Dynamic vehicles (now up to 64k of vehicles)

This commit is contained in:
truelight
2005-02-04 13:23:29 +00:00
parent 3153924ad1
commit f183ca5cc2
7 changed files with 94 additions and 58 deletions

View File

@@ -797,6 +797,9 @@ static void FixVehicle(OldVehicle *o, int num)
if (o->type == 0)
continue;
if (!AddBlockIfNeeded(&_vehicle_pool, i))
error("Vehicles: failed loading savegame: too many vehicles");
n = GetVehicle(i);
n->type = o->type;