pokecrystal/home/sprite_updates.asm

20 lines
354 B
NASM
Raw Normal View History

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
2018-06-24 14:09:41 +00:00
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