summaryrefslogtreecommitdiff
path: root/src/script/api/script_vehicle.hpp
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2012-10-09 20:59:29 +0000
committerplanetmaker <planetmaker@openttd.org>2012-10-09 20:59:29 +0000
commite0529d486100ac37edb7a5a9ec2f8b2f5783ed78 (patch)
tree7ef9d90d3a9c443029ed776ed902ce300e6fc300 /src/script/api/script_vehicle.hpp
parent60335b7b79976d91a28720b2d4e71484e3eabb74 (diff)
downloadopenttd-e0529d486100ac37edb7a5a9ec2f8b2f5783ed78.tar.xz
(svn r24582) -Fix (r24581): Order distances are not supposed to be compared to map distances
Diffstat (limited to 'src/script/api/script_vehicle.hpp')
-rw-r--r--src/script/api/script_vehicle.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/script/api/script_vehicle.hpp b/src/script/api/script_vehicle.hpp
index de7c01603..fb5378e1a 100644
--- a/src/script/api/script_vehicle.hpp
+++ b/src/script/api/script_vehicle.hpp
@@ -551,8 +551,10 @@ 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 square of the maximum distance between two orders for
- * this vehicle or 0 if the distance is unlimited.
+ * @return The maximum distance between two orders for this vehicle
+ * or 0 if the distance is unlimited.
+ * @note The unit of the order distances is unspecified and should
+ * not be compared with map distances
* @see ScriptOrder::GetOrderDistance
*/
static uint GetMaximumOrderDistance(VehicleID vehicle_id);