Skip to content

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

Open
mbuijs wants to merge 1 commit into
rtv:masterfrom
mbuijs:prevent-include-path-change
Open

Don't overwrite the loaded filename when opening includes#101
mbuijs wants to merge 1 commit into
rtv:masterfrom
mbuijs:prevent-include-path-change

Conversation

@mbuijs

@mbuijs mbuijs commented Jun 18, 2020

Copy link
Copy Markdown

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