(svn r15307) -Fix: AIVehicle::GetCurrentSpeed() should also use km-ish/h instead of mph. (Documentation by Rubidium)

This commit is contained in:
frosch
2009-02-01 16:21:18 +00:00
parent c28c4c1986
commit 317220c2e4
5 changed files with 14 additions and 5 deletions

View File

@@ -205,7 +205,9 @@ public:
* @param vehicle_id The vehicle to get the age of.
* @pre IsValidVehicle(vehicle_id).
* @return The current speed of the vehicle.
* @note Speed is in km/h.
* @note The speed is in OpenTTD's internal speed unit.
* This is mph / 1.6, which is roughly km/h.
* To get km/h multiply this number by 1.00584.
*/
static int32 GetCurrentSpeed(VehicleID vehicle_id);