diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2017-09-08 21:25:20 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2017-09-08 21:25:20 -0400 |
commit | 43c3b9fdff01c05860969d80fbc6ae0b0dbbcb90 (patch) | |
tree | bcc40f74dfbf9fbdf2a02d52606bf111e6e5bb69 /src | |
parent | b639ca3b15bea19d7115d7ad619a1e6140015740 (diff) |
unref_sub_808EAC4
Diffstat (limited to 'src')
-rw-r--r-- | src/field_map_obj.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/field_map_obj.c b/src/field_map_obj.c index 8042348f2..e5025fccf 100644 --- a/src/field_map_obj.c +++ b/src/field_map_obj.c @@ -1217,3 +1217,11 @@ static void sub_808EAB0(u16 tag, u8 slot) { pal_patch_for_npc(tag, slot); } + +void unref_sub_808EAC4(struct MapObject *mapObject, s16 x, s16 y) +{ + mapObject->coords3.x = mapObject->coords2.x; + mapObject->coords3.y = mapObject->coords2.y; + mapObject->coords2.x = x + mapObject->coords3.x; + mapObject->coords2.y = y + mapObject->coords3.y; +} |