From 317220c2e4f9d0866553635872cae952616169dc Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 1 Feb 2009 16:21:18 +0000 Subject: (svn r15307) -Fix: AIVehicle::GetCurrentSpeed() should also use km-ish/h instead of mph. (Documentation by Rubidium) --- src/ai/api/ai_event_types.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ai/api/ai_event_types.hpp') diff --git a/src/ai/api/ai_event_types.hpp b/src/ai/api/ai_event_types.hpp index 75bef42a1..044892ab7 100644 --- a/src/ai/api/ai_event_types.hpp +++ b/src/ai/api/ai_event_types.hpp @@ -240,7 +240,9 @@ public: /** * Get the maximum speed of the offered engine. * @return The maximum speed the engine has. - * @note The 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. */ int32 GetMaxSpeed(); -- cgit v1.2.3-70-g09d2