diff options
author | frosch <frosch@openttd.org> | 2009-02-01 16:21:18 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-02-01 16:21:18 +0000 |
commit | be395d0f3dfb525c599fc245498bb8af0437ba44 (patch) | |
tree | 3e031958b4536d4964ee63d7681995cc7d84008a /src/ai/api/ai_bridge.hpp | |
parent | 9c2ba4f96ad445c948480c2b1a564214274d87b6 (diff) | |
download | openttd-be395d0f3dfb525c599fc245498bb8af0437ba44.tar.xz |
(svn r15307) -Fix: AIVehicle::GetCurrentSpeed() should also use km-ish/h instead of mph. (Documentation by Rubidium)
Diffstat (limited to 'src/ai/api/ai_bridge.hpp')
-rw-r--r-- | src/ai/api/ai_bridge.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ai/api/ai_bridge.hpp b/src/ai/api/ai_bridge.hpp index 819242e79..a4bac67f7 100644 --- a/src/ai/api/ai_bridge.hpp +++ b/src/ai/api/ai_bridge.hpp @@ -60,10 +60,13 @@ public: static char *GetName(BridgeID bridge_id); /** - * Get the maximum speed of a bridge (in km/h). + * Get the maximum speed of a bridge. * @param bridge_id The bridge to get the maximum speed of. * @pre IsValidBridge(bridge_id). * @return The maximum speed the bridge has. + * @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 GetMaxSpeed(BridgeID bridge_id); |