don't miss the sprite check

DrawAllSprites depends on HighLnSpr, so prepare in DrawAllSprites was a
bad idea as lots of things may have changed
This commit is contained in:
notaz 2017-09-25 03:00:20 +03:00
parent 0c7d1ba332
commit 6d8782a1f9
2 changed files with 9 additions and 21 deletions

View file

@ -1101,17 +1101,6 @@ DrawSpriteSHi:
DrawAllSprites:
orr r1, r2, r1, lsl #1
ldr r12,[r3, #OFS_rendstatus]
tst r12,#(PDRAW_DIRTY_SPRITES|PDRAW_SPRITES_MOVED)
beq das_no_prep
stmfd sp!, {r0,r1,r3,lr}
and r0, r12,#PDRAW_DIRTY_SPRITES
bic r12,r12,#(PDRAW_DIRTY_SPRITES|PDRAW_SPRITES_MOVED)
str r12,[r3, #OFS_rendstatus]
bl PrepareSprites
ldmfd sp!, {r0,r1,r3,lr}
das_no_prep:
ldr r2, [r0]
ands r2, r2, #0x7f
bxeq lr