diff options
author | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-26 19:27:56 -0500 |
---|---|---|
committer | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-26 19:27:56 -0500 |
commit | 9bc680bd6dde9bbd1c4dcd13d74f42732ea4bc7e (patch) | |
tree | 8bd444cf363af403fbed2355111593e5b23becd3 /engine/battle_anims/helpers.asm | |
parent | 35a3a19fda87d95e829aa99bf1b6cf18a839c1a6 (diff) |
Battle animation data is like sprite animation data
Diffstat (limited to 'engine/battle_anims/helpers.asm')
-rwxr-xr-x | engine/battle_anims/helpers.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/battle_anims/helpers.asm b/engine/battle_anims/helpers.asm index a692211d3..0a00b65a4 100755 --- a/engine/battle_anims/helpers.asm +++ b/engine/battle_anims/helpers.asm @@ -29,10 +29,11 @@ GetBattleAnimFrame: ; ce7d1 inc [hl] call .GetPointer ld a, [hli] - cp -2 + cp dorestart_command jr z, .restart - cp -1 + cp endanim_command jr z, .repeat_last + push af ld a, [hl] push hl @@ -41,12 +42,11 @@ GetBattleAnimFrame: ; ce7d1 add hl, bc ld [hl], a pop hl - .okay ld a, [hl] and $c0 srl a - ld [wBattleAnimTemp7], a + ld [wBattleAnimTempAddSubFlags], a pop af ret |