* Convert the given display speed to the (internal) speed. * @param speed the speed to convert * @return the converted speed. */
| 979 | * @return the converted speed. |
| 980 | */ |
| 981 | uint ConvertDisplaySpeedToSpeed(uint speed, VehicleType type) |
| 982 | { |
| 983 | return GetVelocityUnits(type).c.FromDisplay(speed); |
| 984 | } |
| 985 | |
| 986 | /** |
| 987 | * Convert the given km/h-ish speed to the display speed. |
no test coverage detected