Tracerestrict: Fix speed unit conversions in GUI
This commit is contained in:
@@ -874,8 +874,8 @@ static uint ConvertIntegerValue(TraceRestrictValueType type, uint in, bool to_di
|
|||||||
|
|
||||||
case TRVT_SPEED:
|
case TRVT_SPEED:
|
||||||
return to_display
|
return to_display
|
||||||
? ConvertSpeedToDisplaySpeed(in) * 10 / 16
|
? ConvertKmhishSpeedToDisplaySpeed(in)
|
||||||
: ConvertDisplaySpeedToSpeed(in) * 16 / 10;
|
: ConvertDisplaySpeedToKmhishSpeed(in);
|
||||||
|
|
||||||
case TRVT_WEIGHT:
|
case TRVT_WEIGHT:
|
||||||
return to_display
|
return to_display
|
||||||
|
Reference in New Issue
Block a user