diff options
author | planetmaker <planetmaker@openttd.org> | 2012-10-09 20:59:29 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2012-10-09 20:59:29 +0000 |
commit | e0529d486100ac37edb7a5a9ec2f8b2f5783ed78 (patch) | |
tree | 7ef9d90d3a9c443029ed776ed902ce300e6fc300 /src/script/api/script_order.hpp | |
parent | 60335b7b79976d91a28720b2d4e71484e3eabb74 (diff) | |
download | openttd-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_order.hpp')
-rw-r--r-- | src/script/api/script_order.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/script/api/script_order.hpp b/src/script/api/script_order.hpp index cf925a128..da732490b 100644 --- a/src/script/api/script_order.hpp +++ b/src/script/api/script_order.hpp @@ -588,8 +588,10 @@ public: * @param vehicle_type The vehicle type to get the distance for. * @param origin_tile Origin, can be any tile or a tile of a specific station. * @param dest_tile Destination, ca be any tile or a tile of a specific station. - * @return The square of the distance between the origin and the - * destination for a vehicle of the given vehicle type. + * @return The distance between the origin and the destination for a + * vehicle of the given vehicle type. + * @note The unit of the order distances is unspecified and should + * not be compared with map distances * @see ScriptEngine::GetMaximumOrderDistance and ScriptVehicle::GetMaximumOrderDistance */ static uint GetOrderDistance(ScriptVehicle::VehicleType vehicle_type, TileIndex origin_tile, TileIndex dest_tile); |