(svn r24582) -Fix (r24581): Order distances are not supposed to be compared to map distances

This commit is contained in:
planetmaker
2012-10-09 20:59:29 +00:00
parent 60335b7b79
commit e0529d4861
3 changed files with 12 additions and 6 deletions

View File

@@ -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);