disable offscreen deactivation code for poltergeist

This commit is contained in:
scawful
2025-01-25 11:35:06 -05:00
parent 154b6bc9be
commit 5851f3c9c5

View File

@@ -36,10 +36,12 @@ Sprite_Poltergeist_Long:
{ {
PHB : PHK : PLB PHB : PHK : PLB
JSR Sprite_Poltergeist_Draw JSR Sprite_Poltergeist_Draw
LDA $E0 : CMP #$F0 : BNE .onscreen
LDA.w SprMiscA, X : BEQ .SpriteIsNotActive ; LDA $E0 : CMP #$F0 : BNE .onscreen
STZ.w SprState, X ; kill the sprite if offscreen and activated ; LDA.w SprMiscA, X : BEQ .SpriteIsNotActive
.onscreen ; STZ.w SprState, X ; kill the sprite if offscreen and activated
; .onscreen
JSL Sprite_CheckActive : BCC .SpriteIsNotActive JSL Sprite_CheckActive : BCC .SpriteIsNotActive
JSR Sprite_Poltergeist_Main JSR Sprite_Poltergeist_Main
.SpriteIsNotActive .SpriteIsNotActive