* Convert the given display speed to the km/h-ish speed. * @param speed the speed to convert * @return the converted speed. */
| 999 | * @return the converted speed. |
| 1000 | */ |
| 1001 | uint ConvertDisplaySpeedToKmhishSpeed(uint speed, VehicleType type) |
| 1002 | { |
| 1003 | return GetVelocityUnits(type).c.FromDisplay(speed * 16, true, 10); |
| 1004 | } |
| 1005 | |
| 1006 | /** |
| 1007 | * Decodes an encoded string during FormatString. |
no test coverage detected