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

set_bkg_based_tiles() bug when w > 4 #584

Closed
RodrigoCard opened this issue Oct 5, 2023 · 2 comments
Closed

set_bkg_based_tiles() bug when w > 4 #584

RodrigoCard opened this issue Oct 5, 2023 · 2 comments

Comments

@RodrigoCard
Copy link

When I use something like this to set some tiles:
set_bkg_based_tiles(posx,posy,8,1,hud_tiles, tile_base);
just the first 4 tiles are correctly copied, anything after that shows undefined tile (generally FF tile)
this workaround did the job, but shouldnt be necessary:

if(how_many_tiles>4) {
    set_bkg_based_tiles(posx,posy,4,1,hud_tiles, tile_base);
    set_bkg_based_tiles(posx+4,posy,how_many_tiles-4,1,hud_tiles, tile_base);
} else {
    set_bkg_based_tiles(posx,posy,how_many_tiles,1,hud_tiles, tile_base);
}

thanks

@untoxa
Copy link
Collaborator

untoxa commented Oct 6, 2023

can't trigger the bug, everything is working as expected without any problems. please attach the minimal project that shows that behavior, otherwise i will close the issue. thank you.

@bbbbbr
Copy link
Collaborator

bbbbbr commented Nov 19, 2023

Closed for lack of activity

@bbbbbr bbbbbr closed this as completed Nov 19, 2023
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

No branches or pull requests

3 participants