mirror of
https://github.com/lscharen/iigs-game-engine.git
synced 2024-09-30 09:56:13 +00:00
Fix _PopDirtyTile2 routine to sync with new TS_DIRTY conventions; fixes basic dirty sprite rendering
This commit is contained in:
parent
182ebfd566
commit
77b69cdc82
@ -129,7 +129,7 @@ _CalcDirtySprite
|
|||||||
adc StartYMod208
|
adc StartYMod208
|
||||||
bpl :y_ok
|
bpl :y_ok
|
||||||
clc
|
clc
|
||||||
adc #208 ; Wrap the actual coordinat around
|
adc #208 ; Wrap the actual coordinate around
|
||||||
:y_ok and #$FFF8 ; mask first to ensure LSR will clear the carry
|
:y_ok and #$FFF8 ; mask first to ensure LSR will clear the carry
|
||||||
lsr
|
lsr
|
||||||
lsr
|
lsr
|
||||||
|
@ -70,8 +70,7 @@ _PopDirtyTile2 ; alternate entry point
|
|||||||
sty DirtyTileCount ; remove last item from the list
|
sty DirtyTileCount ; remove last item from the list
|
||||||
|
|
||||||
ldx DirtyTiles,y ; load the offset into the Tile Store
|
ldx DirtyTiles,y ; load the offset into the Tile Store
|
||||||
lda #$FFFF
|
stz TileStore+TS_DIRTY,x ; clear the occupied backlink
|
||||||
stal TileStore+TS_DIRTY,x ; clear the occupied backlink
|
|
||||||
rts
|
rts
|
||||||
|
|
||||||
; An optimized subroutine that runs through the dirty tile list and executes a callback function
|
; An optimized subroutine that runs through the dirty tile list and executes a callback function
|
||||||
|
Loading…
Reference in New Issue
Block a user