fix save and quit bg color bug

This commit is contained in:
scawful
2024-08-27 18:41:37 -04:00
parent ed9d5dd48b
commit b0b825cce9

View File

@@ -421,24 +421,26 @@ SubAreasFix:
SEP #$20
PLX
.no_effect
STA PaletteBuffer_HUD
STA PaletteBuffer_BG
STA.l PaletteBuffer_HUD
STA.l PaletteBuffer_BG
RTL
}
GlovePalettePosition = $7EC4FA
GlovesFix:
{
STA.l !pal_color
LDA $1B : AND #$00FF : BEQ .outdoors3
LDA.l !pal_color
STA $7EC4FA
STA GlovePalettePosition
RTL
.outdoors3:
PHX
JSL ColorSubEffect
PLX
STA $7EC4FA
STA GlovePalettePosition
RTL
}
@@ -457,10 +459,22 @@ CheckIfNight:
ColorBgFix:
{
PHA
SEP #$30
; Check for save and quit
LDA.b $10 : CMP.b #$17 : BEQ .vanilla
REP #$30
PLA
JSL ColorSubEffect
STA.l PaletteCgram_HUD
STA.l PaletteCgram_BG
RTL
.vanilla
REP #$30
PLA
STA.l PaletteCgram_HUD
RTL
}
pushpc