Housekeeping

This commit is contained in:
scawful
2024-10-06 08:22:39 -04:00
parent 7638a7f7ec
commit 79e71b0a93
2 changed files with 12 additions and 26 deletions

View File

@@ -611,19 +611,15 @@ CheckPalaceItemPossession:
.mirror_shield .mirror_shield
LDA $7EF35A : CMP.b #$03 : BEQ .success LDA $7EF35A : CMP.b #$03 : BEQ .success
STZ $02 STZ $02
STZ $03 STZ $03
RTS RTS
.red_mail .red_mail
LDA $7EF35B : CMP.b #$02 : BEQ .success LDA $7EF35B : CMP.b #$02 : BEQ .success
STZ $02 STZ $02
STZ $03 STZ $03
RTS RTS
} }
@@ -632,9 +628,7 @@ Menu_DrawBigChestKey:
{ {
LDA $040C : AND.w #$00FF : CMP.w #$00FF : BEQ .notInPalace LDA $040C : AND.w #$00FF : CMP.w #$00FF : BEQ .notInPalace
LSR A : TAX LSR A : TAX
LDA $7EF364 LDA $7EF364
.locateCompassFlag .locateCompassFlag
ASL A : DEX : BPL .locateCompassFlag ASL A : DEX : BPL .locateCompassFlag
@@ -649,10 +643,8 @@ Menu_DrawBigChestKey:
LDX.w #menu_offset(11, 5) LDX.w #menu_offset(11, 5)
LDY.w #BigChestKeyGFX LDY.w #BigChestKeyGFX
JSR DrawMenuItem JSR DrawMenuItem
.dontHaveCompass .dontHaveCompass
.notInPalace .notInPalace
RTS RTS
} }
@@ -682,7 +674,6 @@ Menu_DrawSongMenu:
DEX : DEX DEX : DEX
BPL .loop BPL .loop
RTS RTS
.magic_bag_tilemap .magic_bag_tilemap
@@ -714,7 +705,6 @@ Menu_DrawMagicBag:
DEX : DEX DEX : DEX
BPL .loop BPL .loop
RTS RTS
.magic_bag_tilemap .magic_bag_tilemap

View File

@@ -37,16 +37,12 @@
Sprite_BeanVendor_Long: Sprite_BeanVendor_Long:
{ {
PHB : PHK : PLB PHB : PHK : PLB
JSR Sprite_BeanVendor_Draw JSR Sprite_BeanVendor_Draw
JSL Sprite_CheckActive ; Check if game is not paused JSL Sprite_CheckActive : BCC .SpriteIsNotActive
BCC .SpriteIsNotActive ; Skip Main code is sprite is innactive JSR Sprite_BeanVendor_Main
JSR Sprite_BeanVendor_Main ; Call the main sprite code
.SpriteIsNotActive .SpriteIsNotActive
PLB ; Get back the databank we stored previously PLB
RTL ; Go back to original code RTL
} }
; ========================================================= ; =========================================================