From c3df5f6cb1b918be622bec0c7be40fe2749bfa8a Mon Sep 17 00:00:00 2001 From: codemann8 Date: Mon, 6 Dec 2021 07:43:04 -0600 Subject: [PATCH] Fixed mirror portals showing in DW --- owrando.asm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/owrando.asm b/owrando.asm index ada8e1c..6c0eccb 100644 --- a/owrando.asm +++ b/owrando.asm @@ -146,6 +146,7 @@ OWPreserveMirrorSprite: { lda.l OWMode+1 : and.b #!FLAG_OW_CROSSED : beq .vanilla rtl ; if OW Crossed, skip world check and continue + .vanilla lda InvertedMode : beq + lda $7ef3ca : beq .deleteMirror @@ -402,6 +403,14 @@ OWWorldUpdate: ; x = owid of destination screen { lda.l OWTileWorldAssoc,x : cmp.l $7ef3ca : beq .return sta.l $7ef3ca ; change world + + ; moving mirror portal off screen when in DW + cmp #0 : beq + : lda #1 + + cmp.l InvertedMode : bne + + lda $1acf : and #$0f : sta $1acf : bra .playSfx ; bring portal back into position + + lda $1acf : eor #$80 : sta $1acf ; move portal off screen + + .playSfx lda #$38 : sta $012f ; play sfx - #$3b is an alternative ; toggle bunny mode