diff options
author | mid-kid <esteve.varela@gmail.com> | 2018-11-22 12:32:24 +0100 |
---|---|---|
committer | mid-kid <esteve.varela@gmail.com> | 2018-11-22 12:32:24 +0100 |
commit | 41f39211ca3448ee79a6c65757bd703f247442fd (patch) | |
tree | 3a1fe8ca8b21d0284f91c60bd908104411538d54 /engine/battle_anims/core.asm | |
parent | 2746288030ff3bd4febc43c1c9fe8a203272b927 (diff) |
Identified another user of wBattleAnimTemp
QueueBattleAnimation loads an object using these wram addresses. Usually
populated by the anim_obj command, but in a couple of cases also
manually.
Diffstat (limited to 'engine/battle_anims/core.asm')
-rw-r--r-- | engine/battle_anims/core.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/battle_anims/core.asm b/engine/battle_anims/core.asm index b213a9f82..b71303afc 100644 --- a/engine/battle_anims/core.asm +++ b/engine/battle_anims/core.asm @@ -27,7 +27,7 @@ DeinitBattleAnimation: ret InitBattleAnimation: - ld a, [wBattleAnimTemp0] + ld a, [wBattleObjectTempID] ld e, a ld d, 0 ld hl, BattleAnimObjects @@ -58,14 +58,14 @@ endr ld a, [de] call GetBattleAnimTileOffset ld [hli], a ; Tile ID - ld a, [wBattleAnimTemp1] + ld a, [wBattleObjectTempXCoord] ld [hli], a ; X Coord - ld a, [wBattleAnimTemp2] + ld a, [wBattleObjectTempYCoord] ld [hli], a ; Y Coord xor a ld [hli], a ; X Offset ld [hli], a ; Y Offset - ld a, [wBattleAnimTemp3] + ld a, [wBattleObjectTemp0b] ld [hli], a ; 0b xor a ld [hli], a ; 0c |