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 issue in stb_tilemap_editor.h which caused tiles in palette to be rendered incorrectly #1169

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

Conversation

SkaillZ
Copy link

@SkaillZ SkaillZ commented Jul 15, 2021

The STBTE__ID was used instead of the ID, so an incorrect ID was passed to the STBTE_DRAW_TILE function.

@nothings
Copy link
Owner

I don't think that fix is correct, you don't want to send back the internal slot number. It's only working because you're assigning IDs from 0..n-1 which matches the internal slot number. I think the correct value is t->id, but I haven't tested.

@SkaillZ
Copy link
Author

SkaillZ commented Jul 15, 2021

ah right thanks, I've updated it to use t->id

@SushilRagoonath
Copy link

SushilRagoonath commented Jul 31, 2021

Thanks for this fix, saved me from debugging it myself

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

Successfully merging this pull request may close these issues.

3 participants