always fix

This commit is contained in:
spannerisms
2021-07-29 09:44:21 -04:00
parent df66369f17
commit 187c2aa4a2
2 changed files with 4 additions and 5 deletions

View File

@@ -127,10 +127,9 @@ RTS
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
;Fix for PoD causing accidental Exploration Glitch ;Fix for SQ jumping causing accidental Exploration Glitch
PodEGFix: SQEGFix:
LDA Bugfix_PodEG : BNE .done LDA Bugfix_PodEG : BNE .done
LDA $040C : CMP.b #$0C : BNE .done ;check if we are in PoD
STZ $047A ;disarm exploration glitch STZ $047A ;disarm exploration glitch
.done .done
RTL RTL

View File

@@ -36,7 +36,7 @@ RTL
OnDungeonExit: OnDungeonExit:
PHA : PHP PHA : PHP
SEP #$20 ; set 8-bit accumulator SEP #$20 ; set 8-bit accumulator
JSL.l PodEGFix JSL.l SQEGFix
PLP : PLA PLP : PLA
STA $040C : STZ $04AC ; thing we wrote over STA $040C : STZ $04AC ; thing we wrote over
@@ -49,7 +49,7 @@ OnDungeonExit:
RTL RTL
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
OnQuit: OnQuit:
JSL.l PodEGFix JSL.l SQEGFix
LDA.b #$00 : STA $7F5035 ; bandaid patch bug with mirroring away from text LDA.b #$00 : STA $7F5035 ; bandaid patch bug with mirroring away from text
LDA.b #$10 : STA $1C ; thing we wrote over LDA.b #$10 : STA $1C ; thing we wrote over
RTL RTL