summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_vehicle.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-02-01 16:21:18 +0000
committerfrosch <frosch@openttd.org>2009-02-01 16:21:18 +0000
commit317220c2e4f9d0866553635872cae952616169dc (patch)
tree3e031958b4536d4964ee63d7681995cc7d84008a /src/ai/api/ai_vehicle.cpp
parentc28c4c1986a9a25cbf67ed84c6ba3d51447bbb6f (diff)
downloadopenttd-317220c2e4f9d0866553635872cae952616169dc.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_vehicle.cpp')
-rw-r--r--src/ai/api/ai_vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_vehicle.cpp b/src/ai/api/ai_vehicle.cpp
index 93732130b..081b7b739 100644
--- a/src/ai/api/ai_vehicle.cpp
+++ b/src/ai/api/ai_vehicle.cpp
@@ -278,7 +278,7 @@
{
if (!IsValidVehicle(vehicle_id)) return -1;
- return ::GetVehicle(vehicle_id)->GetDisplaySpeed();
+ return ::GetVehicle(vehicle_id)->GetDisplaySpeed() * 16 / 10;
}
/* static */ AIVehicle::VehicleState AIVehicle::GetState(VehicleID vehicle_id)