Tracerestrict: Fix speed unit conversions in GUI

This commit is contained in:
Jonathan G Rennison
2021-06-10 23:59:19 +01:00
parent 5b50ae72f8
commit 24783c3d26

View File

@@ -874,8 +874,8 @@ static uint ConvertIntegerValue(TraceRestrictValueType type, uint in, bool to_di
case TRVT_SPEED:
return to_display
? ConvertSpeedToDisplaySpeed(in) * 10 / 16
: ConvertDisplaySpeedToSpeed(in) * 16 / 10;
? ConvertKmhishSpeedToDisplaySpeed(in)
: ConvertDisplaySpeedToKmhishSpeed(in);
case TRVT_WEIGHT:
return to_display