pokecrystal/home/sprite_updates.asm

20 lines
354 B
NASM

DisableSpriteUpdates::
xor a
ldh [hMapAnims], a
ld a, [wStateFlags]
res SPRITE_UPDATES_DISABLED_F, a
ld [wStateFlags], a
ld a, FALSE
ld [wSpriteUpdatesEnabled], a
ret
EnableSpriteUpdates::
ld a, TRUE
ld [wSpriteUpdatesEnabled], a
ld a, [wStateFlags]
set SPRITE_UPDATES_DISABLED_F, a
ld [wStateFlags], a
ld a, TRUE
ldh [hMapAnims], a
ret