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

Fix external tilesets not being stored correctly #792

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

InnocentusLime
Copy link
Contributor

Synopsis

When a tileset is "external" (e.g. passed via external_tilesets to macroquad_tiled::load_map) -- it doesn't get properly incuded in the raw_tiled_map field of the Map struct (as completely empty tilesets).

This PR fixes it by simply injecting map_tilesets in the returned value. As it is pretty much the list of all the tilesets parsed and resolved.

Notes

Unless someone relied on external tilesets being stored as empty tilesets (which this PR assumes is highly unlikely), this change is backwards compatible.

@InnocentusLime InnocentusLime changed the title Raw tiled patch Fix external tilesets not being stored correctly Sep 4, 2024
@not-fl3
Copy link
Owner

not-fl3 commented Sep 5, 2024

Wasn't 6a27440 already merged? Maybe it ended up included in this PR accidently?

@InnocentusLime
Copy link
Contributor Author

Wasn't 6a27440 already merged? Maybe it ended up included in this PR accidently?

Yeah, it was. I think I forgot to rebase. Should be good now

@not-fl3
Copy link
Owner

not-fl3 commented Sep 5, 2024

Perfect, thanks!

@not-fl3 not-fl3 merged commit 2f40b5c into not-fl3:master Sep 5, 2024
6 checks passed
@InnocentusLime InnocentusLime deleted the raw-tiled-patch branch September 5, 2024 17:10
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