diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2017-09-16 22:27:04 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2017-09-16 22:27:04 -0400 |
commit | 64d3a67b0c1750d4ff6f1011b62c0525c335f88e (patch) | |
tree | 89e048d6f7ae338eefa641b849306a74e7bc6954 /src | |
parent | eb41c57ecdd008de76b2aa0ad4849a27ea222007 (diff) |
FieldObjectMoveDestCoords
Diffstat (limited to 'src')
-rwxr-xr-x | src/field_map_obj.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/field_map_obj.c b/src/field_map_obj.c index de72478cf..fd03082fb 100755 --- a/src/field_map_obj.c +++ b/src/field_map_obj.c @@ -3892,6 +3892,16 @@ void GetFieldObjectMovingCameraOffset(s16 *x, s16 *y) } } +void FieldObjectMoveDestCoords(struct MapObject *mapObject, u32 dirn, s16 *x, s16 *y) +{ + u8 direction; + + direction = dirn; + *x = mapObject->coords2.x; + *y = mapObject->coords2.y; + MoveCoords(direction, x, y); +} + asm(".section .text.get_face_direction_anim_id"); void FieldObjectClearAnimIfSpecialAnimActive(struct MapObject *); |