diff options
author | bjarni <bjarni@openttd.org> | 2005-11-05 14:01:00 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-11-05 14:01:00 +0000 |
commit | d86829d0e09fd981cc65c85d65f75129f9299b8f (patch) | |
tree | 1a3529cb495112b582023d8dc1ab63541d00c9dc /vehicle.h | |
parent | 7d4d13df3519d6db4b324b132c32325d25f7f5c3 (diff) | |
download | openttd-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |