* Convert the given (internal) speed to the display speed. * @param speed the speed to convert * @return the converted speed. */
| 966 | * @return the converted speed. |
| 967 | */ |
| 968 | uint ConvertSpeedToDisplaySpeed(uint speed, VehicleType type) |
| 969 | { |
| 970 | /* For historical reasons we don't want to mess with the |
| 971 | * conversion for speed. So, don't round it and keep the |
| 972 | * original conversion factors instead of the real ones. */ |
| 973 | return GetVelocityUnits(type).c.ToDisplay(speed, false); |
| 974 | } |
| 975 | |
| 976 | /** |
| 977 | * Convert the given display speed to the (internal) speed. |
no test coverage detected