summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-09-16 21:59:14 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2017-09-16 21:59:14 -0400
commit3f2c6556cb25c178b29b016dd87bb706a7fb631c (patch)
tree47afe745e1becf970a4d8336bf4aa39da0507858 /src
parentbd48354207282b2948a2198fec35ae36aaa89f7a (diff)
sub_8092FF0
Diffstat (limited to 'src')
-rwxr-xr-xsrc/field_map_obj.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/field_map_obj.c b/src/field_map_obj.c
index 4592c4dfe..b8be79d73 100755
--- a/src/field_map_obj.c
+++ b/src/field_map_obj.c
@@ -20,6 +20,7 @@
#include "metatile_behavior.h"
#include "field_effect.h"
#include "field_effect_helpers.h"
+#include "field_camera.h"
#include "field_map_obj.h"
#define NUM_FIELD_MAP_OBJECT_TEMPLATES 0x51
@@ -3827,6 +3828,14 @@ void sub_8092F88(u32 dirn, s16 *x, s16 *y, s16 dx, s16 dy)
}
}
+void sub_8092FF0(s16 x, s16 y, s16 *dest_x, s16 *dest_y)
+{
+ *dest_x = (x - gSaveBlock1Ptr->pos.x) << 4;
+ *dest_y = (y - gSaveBlock1Ptr->pos.y) << 4;
+ *dest_x -= gUnknown_03005DEC;
+ *dest_y -= gUnknown_03005DE8;
+}
+
asm(".section .text.get_face_direction_anim_id");
void FieldObjectClearAnimIfSpecialAnimActive(struct MapObject *);