Join GitHub today
GitHub is home to over 40 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 #34
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.
* Change: Adopt the versioning scheme as OpenTTD does uses now with git * Fail gracefully when operating on detached head
* Doc: add simple cargo wagon to example train nml * Docs: example cargo wagon nml now uses sprite stack to add cargo to base wagon * Docs: add comments to sprite stack example for trains
* Fix: Don't warn on missing files which are allowed to be missing during build * Change: Consider origin/master a useful revision
* Codechange: Rename CargotypeListProp to ByteListProp since it's sufficiently generic * Add: Flag 18 for industries * Add: Industry props 25 26 support * Add: Industry prop 27 support * Add: Industry prop 28 * Add: Industry tile special flag 1 * Docs: add an example industry, using the new 16-in, 16-out props (incomplete) * Add: Support for industries property 28 (input_multiplier) * Add: New 0x69-0x6F variables for industries * Doc: Explain input_multiplier (prop 28) better in example industry * Fix: Properly accept floats for industry input_multipliers * Docs: add cargotable to example industry, and use in accept/produce props * Docs: stub in extra_text_industry at example factory industry (non-functional) * Add: New combined cargo_types property for industry definitions * Remove: Take away support in old NML properties for new industry properties * Docs: adjust example of how to use text stack in extra_text_industry to simple single var check * Codechange: Two slightly different classes had the same name, rename one * Change: Make the accept_cargo/produce_cargo expressions a little more regular * Add: WIP prod cb v2 support * Add: Support for production callback v2 * Remove: Old industry production/acceptance syntax * Remove: Support for old produce syntax * Remove: Deprecated industry variables