News:

SimuTranslator
Make Simutrans speak your language.

[ex15] Livery scheme is duplicated and registered every time saved and reloaded

Started by Ranran, June 14, 2022, 10:51:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ranran

This will register a duplicate livery each time it is saved.
https://github.com/jamespetts/simutrans-extended/blame/ex-15/dataobj/livery_scheme.cc#L78
You can see that deleting this line eliminates duplicate registrations.
However, the livery scheme code has many different changes from the master branch, so I am not sure of the intent.

jamespetts

Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.