summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-09-16 22:23:48 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2017-09-16 22:23:48 -0400
commiteb41c57ecdd008de76b2aa0ad4849a27ea222007 (patch)
tree78dd4fff714fb359d07eb3d3853b052e55a8b3b0 /src
parent812ad017e892ff3d93b3df8310335287a556e871 (diff)
GetFieldObjectMovingCameraOffset
Diffstat (limited to 'src')
-rwxr-xr-xsrc/field_map_obj.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/field_map_obj.c b/src/field_map_obj.c
index eb9ed2129..de72478cf 100755
--- a/src/field_map_obj.c
+++ b/src/field_map_obj.c
@@ -3870,6 +3870,28 @@ void sub_80930E0(s16 *x, s16 *y, s16 dx, s16 dy)
*y += dy;
}
+void GetFieldObjectMovingCameraOffset(s16 *x, s16 *y)
+{
+ *x = 0;
+ *y = 0;
+ if (gUnknown_03005DD0.x > 0)
+ {
+ (*x) ++;
+ }
+ if (gUnknown_03005DD0.x < 0)
+ {
+ (*x) --;
+ }
+ if (gUnknown_03005DD0.y > 0)
+ {
+ (*y) ++;
+ }
+ if (gUnknown_03005DD0.y < 0)
+ {
+ (*y) --;
+ }
+}
+
asm(".section .text.get_face_direction_anim_id");
void FieldObjectClearAnimIfSpecialAnimActive(struct MapObject *);