summaryrefslogtreecommitdiff
path: root/src/script.c
diff options
context:
space:
mode:
authorTheo <65437533+notyourav@users.noreply.github.com>2024-01-01 13:10:06 -0800
committerGitHub <noreply@github.com>2024-01-01 13:10:06 -0800
commit6fb8b41a8e003d0a4997740f4178aeb0c3f24ead (patch)
tree9ada8fe01cc0e308e32e385f9b6965971010cda0 /src/script.c
parent983412cc77d81692ad9431c0bd55f8d24e5554f8 (diff)
parentf5c6178ed4830769f65fbc74b18e3403eda05f86 (diff)
Merge pull request #686 from notyourav/followtest
document unused zelda follower and gust jar states
Diffstat (limited to 'src/script.c')
-rw-r--r--src/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script.c b/src/script.c
index 6a10ec96..3a826a34 100644
--- a/src/script.c
+++ b/src/script.c
@@ -436,7 +436,7 @@ void sub_0807DEDC(Entity* entity, ScriptExecutionContext* context, u32 x, u32 y)
context->y.HALF.HI = y;
xOffset = context->x.HALF.HI - entity->x.HALF.HI;
yOffset = context->y.HALF.HI - entity->y.HALF.HI;
- direction = sub_080045DA(xOffset, yOffset);
+ direction = CalcOffsetAngle(xOffset, yOffset);
entity->direction = direction;
entity->animationState = (entity->animationState & 0x80) | sDirectionTable[(u8)direction >> 4];
}
@@ -1394,7 +1394,7 @@ void ScriptCommand_0807EE30(Entity* entity, ScriptExecutionContext* context) {
if (!--context->unk_19) {
context->unk_19 = 8;
entity->direction =
- sub_080045DA(context->x.HALF.HI - entity->x.HALF.HI, context->y.HALF.HI - entity->y.HALF.HI);
+ CalcOffsetAngle(context->x.HALF.HI - entity->x.HALF.HI, context->y.HALF.HI - entity->y.HALF.HI);
}
tmp = entity->x.HALF.HI - context->x.HALF.HI;
tmp2 = entity->y.HALF.HI - context->y.HALF.HI;