mirror of
https://github.com/lscharen/iigs-game-engine.git
synced 2025-02-21 12:29:07 +00:00
Fix off-by-one error when rendering tiles
This commit is contained in:
parent
b5fa2d9266
commit
d1e59e81ac
@ -37,12 +37,13 @@ CopyTile
|
|||||||
lda Col2CodeOffset,x
|
lda Col2CodeOffset,x
|
||||||
adc BTableLow,y
|
adc BTableLow,y
|
||||||
tay
|
tay
|
||||||
|
iny ; +1 to move past to opcode to the operand
|
||||||
|
|
||||||
plb ; set the bank
|
plb ; set the bank
|
||||||
pla ; pop the tile ID
|
pla ; pop the tile ID
|
||||||
jsr _CopyTile
|
jsr _CopyTile
|
||||||
|
|
||||||
plb ; restre the data bank and return
|
plb ; restore the data bank and return
|
||||||
rts
|
rts
|
||||||
|
|
||||||
; _CopyTile
|
; _CopyTile
|
||||||
@ -140,3 +141,6 @@ CopyTileLinear ldal tiledata+0,x
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user