From d86829d0e09fd981cc65c85d65f75129f9299b8f Mon Sep 17 00:00:00 2001 From: bjarni Date: Sat, 5 Nov 2005 14:01:00 +0000 Subject: (svn r3138) -Fix: [clone vehicles] fixed assert when it was possible to allocate some vehicles to clone a train, but not for all cars Now it gives "too many vehicles" error message instead To make this work, AllocateVehicles() needed to be moved to vehicle.c (from aircraft_cmd.c) and made non-static --- vehicle.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vehicle.h') diff --git a/vehicle.h b/vehicle.h index 0773d9231..be2b120d4 100644 --- a/vehicle.h +++ b/vehicle.h @@ -274,6 +274,7 @@ typedef void *VehicleFromPosProc(Vehicle *v, void *data); void VehicleServiceInDepot(Vehicle *v); Vehicle *AllocateVehicle(void); +bool AllocateVehicles(Vehicle **vl, int num); Vehicle *ForceAllocateVehicle(void); Vehicle *ForceAllocateSpecialVehicle(void); void UpdateVehiclePosHash(Vehicle *v, int x, int y); -- cgit v1.2.3-54-g00ecf