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

View File

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