-
Notifications
You must be signed in to change notification settings - Fork 51
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
Chance to update CGB tile attribute outside proper times #65
Comments
Yes, you are right |
by outside proper times I meant while VRAM shouldn't be written. This can cause failures where the attribute data doesn't get written, and will also throw an exception in bgb or emulicious if they are enabled SetTile is doing checks to avoid this by looping on STAT_REG & 2 before writing. |
As far as i know set_bkg_tiles should be doing this too Anyways it should be either set_bkg_tile_xy in both calls or SetTile but not a mix so I'll change it |
that fix from Toxa should fix the issue |
ZGB/common/src/Scroll.c
Line 133 in ffca1a1
This line should be replaced with
SetTile (id, replacement);
which will check STAT_REG & 2 before writing.
This is similar to the call directly above to write the tile data
The text was updated successfully, but these errors were encountered: