Fix bug with using masks in dark world dungeons

This commit is contained in:
scawful
2024-11-28 14:33:15 -05:00
parent 130df6b653
commit 73d100d5df
2 changed files with 5 additions and 5 deletions

View File

@@ -50,10 +50,10 @@ LinkState_GameboyInDungeonEntrance:
{
; if link is in the dark world, change his sprite to the gbc one
LDA $0FFF : CMP #$00 : BEQ .return
LDA.w !CurrentMask : CMP.b #$05 : BEQ .return
LDA $BC : CMP #$06 : BEQ .return
JSL UpdateGbcPalette
LDA #$3B : STA $BC ; change link's sprite
LDA.w !CurrentMask : BNE .return
LDA $BC : CMP #$06 : BEQ .return
JSL UpdateGbcPalette
LDA #$3B : STA $BC ; change link's sprite
.return
JSL $0AFE80 ; Underworld_HandleLayerEffect
RTL