summaryrefslogtreecommitdiff
path: root/vehicle.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-11-05 14:01:00 +0000
committerbjarni <bjarni@openttd.org>2005-11-05 14:01:00 +0000
commitd86829d0e09fd981cc65c85d65f75129f9299b8f (patch)
tree1a3529cb495112b582023d8dc1ab63541d00c9dc /vehicle.h
parent7d4d13df3519d6db4b324b132c32325d25f7f5c3 (diff)
downloadopenttd-d86829d0e09fd981cc65c85d65f75129f9299b8f.tar.xz
(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
Diffstat (limited to 'vehicle.h')
-rw-r--r--vehicle.h1
1 files changed, 1 insertions, 0 deletions
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);