Skip to content

Commit

Permalink
Merge pull request #258 from nub1604/nubdevbranch
Browse files Browse the repository at this point in the history
Fix: mask out tile number on flipped tiles
  • Loading branch information
alekmaul authored Nov 1, 2023
2 parents 0b099fa + 0221afb commit 60b46d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pvsneslib/source/maps.asm
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,7 @@ mapGetMetaTile:
rep #$20
lda 0,x
plb
and #$03FF ; to have only tile number (no flipx/y)
plx

sta.w tcc__r0
Expand Down Expand Up @@ -1003,6 +1004,7 @@ mapGetMetaTilesProp:
rep #$20
lda 0,x
plb
and #$03FF ; to have only tile number (no flipx/y)
plx

asl a ; property is a 16bit arrays
Expand Down

0 comments on commit 60b46d8

Please sign in to comment.