(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 9c2ba4f96a
commit be395d0f3d
5 changed files with 14 additions and 5 deletions

View File

@@ -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)