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,7 +50,7 @@ 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.w !CurrentMask : BNE .return
LDA $BC : CMP #$06 : BEQ .return
JSL UpdateGbcPalette
LDA #$3B : STA $BC ; change link's sprite

View File

@@ -125,7 +125,7 @@ RunClock:
.counter_increasing
; GBC Link code
LDA $0FFF : CMP #$00 : BEQ .light_world
LDA $02B2 : CMP.b #$05 : BCS .already_gbc_or_minish
LDA $02B2 : BNE .already_gbc_or_minish
JSL UpdateGbcPalette
LDA.b #$3B : STA $BC ; change link's sprite
LDA.b #$06 : STA $02B2 ; set the form id