Fixed mirror bonk issue incorrectly leaving a mirror portal behind

This commit is contained in:
codemann8
2022-03-07 20:12:32 -06:00
parent bd8b79ae5c
commit eb30242920

View File

@@ -168,9 +168,17 @@ OWMirrorSpriteMove:
}
OWMirrorSpriteRestore:
{
lda.l OWMode+1 : and.b #!FLAG_OW_CROSSED : beq +
lda $1acf : and #$0f : sta $1acf
+ rep #$30 : lda.w $04AC ; what we wrote over
lda.l OWMode+1 : and.b #!FLAG_OW_CROSSED : beq .return
lda InvertedMode : beq +
lda $7ef3ca : beq .return
bra .restorePortal
+ lda $7ef3ca : bne .return
.restorePortal
lda $1acf : and #$0f : sta $1acf
.return
rep #$30 : lda.w $04AC ; what we wrote over
rtl
}
OWLightWorldOrCrossed: