(svn r1783) -Add: Dynamic vehicles (now up to 64k of vehicles)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user