Fixed sprite priority rotation (Thanks TRAC!)

This commit is contained in:
pagefault
2001-12-09 22:50:05 +00:00
parent 32e71d4584
commit d073a30e4e

View File

@@ -511,16 +511,17 @@ reg2102w:
.skipstore .skipstore
cmp byte[nexthprior],1 cmp byte[nexthprior],1
je .priorset je .priorset
mov byte[objhipr],0 ; mov byte[objhipr],0
jmp .cachespr jmp .cachespr
.priorset .priorset
mov bl,al mov bx,[oamaddr]
cmp bl,80h shr bx,2
jae .noreset and bl,0x7F
; cmp bl,80h
; jae .noreset
; xor bl,bl ; xor bl,bl
.noreset .noreset
mov [objhipr],bl mov [objhipr],bl
mov byte[nexthprior],0
.cachespr .cachespr
ret ret
@@ -547,6 +548,7 @@ reg2103w:
mov [oamaddrs],bx mov [oamaddrs],bx
test al,80h test al,80h
jnz .hipri jnz .hipri
mov byte[nexthprior],0
mov byte[NextLineCache],1 mov byte[NextLineCache],1
ret ret
.hipri .hipri