Fix oddity if portal activates during an animated entrance

This commit is contained in:
Kevin Cathcart
2018-09-28 20:51:17 -04:00
parent 9fd3e25dc6
commit 4706b31d82
2 changed files with 25 additions and 0 deletions

View File

@@ -194,3 +194,17 @@ TurtleRockEntranceFix:
.done
RTL
;--------------------------------------------------------------------------------
AnimatedEntranceFix: ;when an entrance animation tries to start
PHA
LDA.l InvertedMode : BEQ + ;If we are in inverted mode
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 $0FC1 ;what we wrote over
STA $0710 ;what we wrote over
RTL