Cleanup Pols Voice

This commit is contained in:
scawful
2024-11-19 14:57:39 -05:00
parent 1abe75ddb1
commit d88410e9c2

View File

@@ -37,28 +37,22 @@
Sprite_PolsVoice_Long: Sprite_PolsVoice_Long:
{ {
PHB : PHK : PLB PHB : PHK : PLB
JSR Sprite_PolsVoice_Draw
JSR Sprite_PolsVoice_Draw ; Call the draw code
JSL Sprite_DrawShadow JSL Sprite_DrawShadow
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_PolsVoice_Main
JSR Sprite_PolsVoice_Main ; Call the main sprite code
.SpriteIsNotActive .SpriteIsNotActive
PLB ; Get back the databank we stored previously PLB
RTL ; Go back to original code RTL
} }
; ========================================================= ; =========================================================
Sprite_PolsVoice_Prep: Sprite_PolsVoice_Prep:
{ {
PHB : PHK : PLB PHB : PHK : PLB
LDA.b #$80 : STA.w SprTimerA, X LDA.b #$80 : STA.w SprTimerA, X
LDA.b #$00 : STA.w SprDefl, X LDA.b #$00 : STA.w SprDefl, X
LDA.b #$00 : STA.w SprTileDie, X LDA.b #$00 : STA.w SprTileDie, X
PLB PLB
RTL RTL
} }
@@ -133,10 +127,8 @@ Sprite_PolsVoice_Main:
.no_damage .no_damage
RTS RTS
} }
} }
; ========================================================= ; =========================================================
Sprite_PolsVoice_Draw: Sprite_PolsVoice_Draw: