summaryrefslogtreecommitdiff
path: root/src/rotating_gate.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-04-10 13:05:51 -0400
committerGitHub <noreply@github.com>2021-04-10 13:05:51 -0400
commit09a9efd5c57909c215a66b85f3255190c8882940 (patch)
treefff7823aa15ce633de1bc4132574c1d081a84a93 /src/rotating_gate.c
parentf6016838b1b0e2f0cf752b3b44c63e9e9776de4f (diff)
parentc95e89e083f4911d41036ecd3b8a744ff59ec8a9 (diff)
Merge pull request #1398 from GriffinRichards/doc-field
Document field
Diffstat (limited to 'src/rotating_gate.c')
-rw-r--r--src/rotating_gate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rotating_gate.c b/src/rotating_gate.c
index 162eb3e6d..22a0b0bdf 100644
--- a/src/rotating_gate.c
+++ b/src/rotating_gate.c
@@ -754,7 +754,7 @@ static u8 RotatingGate_CreateGate(u8 gateId, s16 deltaX, s16 deltaY)
sprite->data[0] = gateId;
sprite->coordOffsetEnabled = 1;
- sub_8092FF0(x + deltaX, y + deltaY, &sprite->pos1.x, &sprite->pos1.y);
+ GetMapCoordsFromSpritePos(x + deltaX, y + deltaY, &sprite->pos1.x, &sprite->pos1.y);
RotatingGate_HideGatesOutsideViewport(sprite);
StartSpriteAffineAnim(sprite, RotatingGate_GetGateOrientation(gateId));