Fix bug with using masks in dark world dungeons
This commit is contained in:
@@ -50,10 +50,10 @@ LinkState_GameboyInDungeonEntrance:
|
|||||||
{
|
{
|
||||||
; if link is in the dark world, change his sprite to the gbc one
|
; if link is in the dark world, change his sprite to the gbc one
|
||||||
LDA $0FFF : CMP #$00 : BEQ .return
|
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
|
LDA $BC : CMP #$06 : BEQ .return
|
||||||
JSL UpdateGbcPalette
|
JSL UpdateGbcPalette
|
||||||
LDA #$3B : STA $BC ; change link's sprite
|
LDA #$3B : STA $BC ; change link's sprite
|
||||||
.return
|
.return
|
||||||
JSL $0AFE80 ; Underworld_HandleLayerEffect
|
JSL $0AFE80 ; Underworld_HandleLayerEffect
|
||||||
RTL
|
RTL
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ RunClock:
|
|||||||
.counter_increasing
|
.counter_increasing
|
||||||
; GBC Link code
|
; GBC Link code
|
||||||
LDA $0FFF : CMP #$00 : BEQ .light_world
|
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
|
JSL UpdateGbcPalette
|
||||||
LDA.b #$3B : STA $BC ; change link's sprite
|
LDA.b #$3B : STA $BC ; change link's sprite
|
||||||
LDA.b #$06 : STA $02B2 ; set the form id
|
LDA.b #$06 : STA $02B2 ; set the form id
|
||||||
|
|||||||
Reference in New Issue
Block a user