summaryrefslogtreecommitdiff
path: root/src/script/api/script_vehicle.hpp
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2012-10-09 20:37:20 +0000
committerplanetmaker <planetmaker@openttd.org>2012-10-09 20:37:20 +0000
commit60335b7b79976d91a28720b2d4e71484e3eabb74 (patch)
tree7446931af85a93f523b2e84b34cf561f3e0b1503 /src/script/api/script_vehicle.hpp
parentde770d75636e218c2d2540a160d7c698015c8de2 (diff)
downloadopenttd-60335b7b79976d91a28720b2d4e71484e3eabb74.tar.xz
(svn r24581) -Doc [FS#5318]: Indicate that the return value for script related order distances is the square of the distance
Diffstat (limited to 'src/script/api/script_vehicle.hpp')
-rw-r--r--src/script/api/script_vehicle.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/script_vehicle.hpp b/src/script/api/script_vehicle.hpp
index 8206b46d8..de7c01603 100644
--- a/src/script/api/script_vehicle.hpp
+++ b/src/script/api/script_vehicle.hpp
@@ -551,8 +551,8 @@ public:
* Get the maximum allowed distance between two orders for a vehicle.
* @param vehicle_id The vehicle to get the distance for.
* @pre IsValidVehicle(vehicle_id).
- * @return The maximum distance between two orders for this vehicle
- * or 0 if the distance is unlimited.
+ * @return The square of the maximum distance between two orders for
+ * this vehicle or 0 if the distance is unlimited.
* @see ScriptOrder::GetOrderDistance
*/
static uint GetMaximumOrderDistance(VehicleID vehicle_id);