Raildriver always shows mph on its LED display
Bug #1662100 reported by
Michael J. Roth
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open Rails |
Fix Released
|
Medium
|
Carlo Santucci |
Bug Description
Raildriver always shows mph on its LED display instead of kph despite the following settings:
a) "SpeedKPH" in sigcfg.dat
b) "MilepostUnitsK
These Settings will only work for the HUD, but does not lead to the expected effect on raildrivers LED.
The hint of Markus_GE in the ET forum also does not help (see http://
I unfortunately have no access to ET, I can neither answer nor write a Message to Markus_GE or BillC
Changed in or: | |
milestone: | none → 1.3 |
importance: | Undecided → Medium |
Changed in or: | |
assignee: | nobody → Carlo Santucci (carlosanit1) |
Changed in or: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
In line 236 of UserInputRailDr iver.cs the boolean value is hard coded to false. playerLoco. SpeedMpS, false);
float speed = 10 * MpS.FromMpS(
This results in the the function Meters per Second always being converted to Miles per Hour.
It has been a long time since I have looked at OR code. When I have a chance I would need to research to determine where to ascertain when the value should be true or false.
Perhaps a developer more familiar in this area could make the change.
BillC