From 486e5b4bfeb4916f0a285fb9749ba031fa16c278 Mon Sep 17 00:00:00 2001 From: yexo Date: Sat, 25 Apr 2009 22:57:15 +0000 Subject: (svn r16150) -Fix [NoAI]: Change WAYPOINT_INVALID to 0xFFFF from -1 as that's the value the AIs got (due to casting). Clarify some api documentation. --- src/ai/api/ai_vehicle.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ai/api/ai_vehicle.hpp') diff --git a/src/ai/api/ai_vehicle.hpp b/src/ai/api/ai_vehicle.hpp index 6d15a8cef..bc2360b40 100644 --- a/src/ai/api/ai_vehicle.hpp +++ b/src/ai/api/ai_vehicle.hpp @@ -422,11 +422,12 @@ public: static bool SellWagonChain(VehicleID vehicle_id, int wagon); /** - * Sends the given vehicle to a depot. + * Sends the given vehicle to a depot. If the vehicle has already been + * sent to a depot it continues with its normal orders instead. * @param vehicle_id The vehicle to send to a depot. * @pre IsValidVehicle(vehicle_id). * @exception AIVehicle::ERR_VEHICLE_CANNOT_SEND_TO_DEPOT - * @return True if and only if the vehicle has been sent to a depot. + * @return True if the current order was changed. */ static bool SendVehicleToDepot(VehicleID vehicle_id); -- cgit v1.2.3-54-g00ecf