Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't overwrite the loaded filename when opening includes #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mbuijs
Copy link

@mbuijs mbuijs commented Jun 18, 2020

The filename of the worldfile is used to find include files, bitmaps (and maybe other things?). When handling includes that are found through the STAGEPATH, the filename of the worldfile is overwritten. Later on when for example loading bitmaps, the STAGEPATH is not evaluated anymore, instead only the filename is used. In my case bitmaps are located next to the original world file, not near files somewhere in the STAGEPATH.

Another scenario is the save functionality, which will actually attempt to save the world file to the path of the last include instead of the original world file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants