* Convert the given km/h-ish speed to the display speed. * @param speed the speed to convert * @return the converted speed. */
| 989 | * @return the converted speed. |
| 990 | */ |
| 991 | uint ConvertKmhishSpeedToDisplaySpeed(uint speed, VehicleType type) |
| 992 | { |
| 993 | return GetVelocityUnits(type).c.ToDisplay(speed * 10, false) / 16; |
| 994 | } |
| 995 | |
| 996 | /** |
| 997 | * Convert the given display speed to the km/h-ish speed. |
no test coverage detected