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
Fix ottd_display_speed to reflect changes done in OpenTTD #35
736f034 fixed rounding errors with nml->nfo conversion, however the ottd_display_speed function has not been updated to reflect changes done in OpenTTD/OpenTTD@7634416. Specifically, the display value should be divided only after all other conversions have been done. The updated version of the function fixes the many off-by-one rounding errors currently present with nml coded vehicles.