summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_vehicle.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-02-01 17:14:39 +0000
committerfrosch <frosch@openttd.org>2009-02-01 17:14:39 +0000
commit61a893d6fd341515c5d0fea254c5ea25849afa58 (patch)
treec6c194df7208fda252250f6a43df63be15b1bd2d /src/ai/api/ai_vehicle.cpp
parentbe395d0f3dfb525c599fc245498bb8af0437ba44 (diff)
downloadopenttd-61a893d6fd341515c5d0fea254c5ea25849afa58.tar.xz
(svn r15308) -Codechange: Deduplicate km-ish/h -> mph conversions.
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 081b7b739..18e17221d 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() * 16 / 10;
+ return ::GetVehicle(vehicle_id)->GetDisplaySpeed(); // km-ish/h
}
/* static */ AIVehicle::VehicleState AIVehicle::GetState(VehicleID vehicle_id)