From 327f08ce35705afe9e6e67670c2c998d300cd52a Mon Sep 17 00:00:00 2001 From: cassidy Date: Sat, 22 May 2021 12:46:35 -0400 Subject: [PATCH] Revert "Update entrances.asm" This reverts commit f4a336db9e5308f8dae43f40f22b8cbe3e29bf5f. --- entrances.asm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/entrances.asm b/entrances.asm index a76ae17..2b2f171 100644 --- a/entrances.asm +++ b/entrances.asm @@ -4,7 +4,9 @@ ;-------------------------------------------------------------------------------- LockAgahnimDoors: LDA.l AgahnimDoorStyle : AND.w #$00FF - BEQ .exit ; don't need to load 0, because we'd have it if we reached here + BNE + + ;#$0 = Never Locked + LDA.w #$0000 : RTL + : CMP.w #$0001 : BNE + LDA $7EF3C5 : AND.w #$000F : CMP.w #$0002 : !BGE .unlock ; if we rescued zelda, skip JSR.w LockAgahnimDoorsCore : RTL @@ -35,7 +37,7 @@ LockAgahnimDoors: .unlock LDA.w #$0000 ; fallback to never locked -.exit + RTL ;-------------------------------------------------------------------------------- LockAgahnimDoorsCore: @@ -202,14 +204,14 @@ RTL AnimatedEntranceFix: ;when an entrance animation tries to start PHA LDA.l InvertedMode : BEQ + ;If we are in inverted mode - PLA - BIT $8A : BVS ++ ; and in the light world + LDA $8A : AND.b #$40 : BNE + ;and in the light world + PLA STZ $04C6 ; skip it. LDA #$00 RTL + PLA -++ STA $02E4 ;what we wrote over + STA $02E4 ;what we wrote over STA $0FC1 ;what we wrote over STA $0710 ;what we wrote over RTL