Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Speed values are slightly off when using metric units #74
Note: I'm using the (very) old NML executable for Windows to make an NRT roadset, if that makes a difference. I don't think anything has been changed to this effect lately, but just in case, I wanted to mention it.
When defining speeds for some feature in km/h or m/s, the in-game speeds should be exactly as defined.
The displayed speeds in-game are slightly different than what is defined by the NewGRF. As an example, I've attached a simple NewGRF (and NML file) which clearly defines a roadtype with a speed of 50 km/h; however in-game the speed is reported as 49 km/h. A similar effect is observed with m/s.
This feels like some kind of rounding error or something, perhaps due to the weird units OpenTTD uses internally, but that's just an uneducated guess