summaryrefslogtreecommitdiff
path: root/src/battle/anim/homing.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2018-03-26 20:38:14 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2018-03-26 20:38:14 -0400
commit5c6c7a82f69ed383bc4d931ffb90b2b5d3a59701 (patch)
treec9fd1c685c5c95c5e1bc868b2572a8cbc25115b1 /src/battle/anim/homing.c
parent0e372d2fb6785ba47011b6ee0ad1b68ea05ae198 (diff)
parent583724758e97fafc8e6796f13d2c46660d6f4388 (diff)
Merge branch 'master' into tomomichi_debug_menu
Diffstat (limited to 'src/battle/anim/homing.c')
-rw-r--r--src/battle/anim/homing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle/anim/homing.c b/src/battle/anim/homing.c
index 6fb4a76d8..208d3b831 100644
--- a/src/battle/anim/homing.c
+++ b/src/battle/anim/homing.c
@@ -60,7 +60,7 @@ void sub_80CC6CC(struct Sprite* sprite)
sprite->data[2] = y * 16;
sprite->data[3] = (sprite->data[5] - sprite->pos1.x) * 16 / gBattleAnimArgs[4];
sprite->data[4] = (sprite->data[6] - sprite->pos1.y) * 16 / gBattleAnimArgs[4];
- c = sub_80790F0(sprite->data[5] - x, sprite->data[6] - y);
+ c = ArcTan2Neg(sprite->data[5] - x, sprite->data[6] - y);
if (IsContest())
c -= 0x8000;