File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Source/Orts.Simulation/Simulation/RollingStocks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5031,16 +5031,16 @@ public virtual float GetDataOf(CabViewControl cvc)
5031
5031
switch ( cvc . Units )
5032
5032
{
5033
5033
case CABViewControlUnits . KILOMETRES :
5034
- data = float . Parse ( Math . Round ( OdometerM / 1000 , 0 ) . ToString ( ) ) ;
5034
+ data = OdometerM / 1000 ;
5035
5035
break ;
5036
5036
case CABViewControlUnits . MILES :
5037
- data = ( float ) Math . Round ( Me . ToMi ( OdometerM ) , 0 ) ;
5037
+ data = ( float ) Me . ToMi ( OdometerM ) ;
5038
5038
break ;
5039
5039
case CABViewControlUnits . FEET :
5040
- data = ( float ) Math . Round ( Me . ToFt ( OdometerM ) , 0 ) ;
5040
+ data = ( float ) Me . ToFt ( OdometerM ) ;
5041
5041
break ;
5042
5042
case CABViewControlUnits . YARDS :
5043
- data = ( float ) Math . Round ( Me . ToYd ( OdometerM ) , 0 ) ;
5043
+ data = ( float ) Me . ToYd ( OdometerM ) ;
5044
5044
break ;
5045
5045
case CABViewControlUnits . METRES :
5046
5046
default :
You can’t perform that action at this time.
0 commit comments