summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscnorton <scnorton@biociphers.org>2017-09-17 15:03:47 -0400
committerscnorton <scnorton@biociphers.org>2017-09-17 15:03:47 -0400
commit8d34e9c3970d23832bb5500358fe4a2e250c5124 (patch)
treea13c39818c6ee8e29d61353dc4ae85647f53d0c7 /src
parent7bf307e7aee242ddba099d8963b13ad022efb9f1 (diff)
More an_walk_any_2_macro memes
Diffstat (limited to 'src')
-rwxr-xr-xsrc/field_map_obj.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/field_map_obj.c b/src/field_map_obj.c
index f1de23307..b5f92645d 100755
--- a/src/field_map_obj.c
+++ b/src/field_map_obj.c
@@ -4938,3 +4938,15 @@ special_anim_with_timer_2(sub_8095FE8, SOUTH, sub_80929FC, 8, sub_809459C)
special_anim_with_timer_2(sub_8096020, NORTH, sub_80929FC, 8, sub_809459C)
special_anim_with_timer_2(sub_8096058, WEST, sub_80929FC, 8, sub_809459C)
special_anim_with_timer_2(sub_8096090, EAST, sub_80929FC, 8, sub_809459C)
+
+void sub_80960C8(struct MapObject *mapObject, struct Sprite *sprite, u8 direction, u8 speed)
+{
+ npc_apply_direction(mapObject, sprite, direction, speed);
+ StartSpriteAnim(sprite, sub_80929BC(mapObject->mapobj_unk_18));
+ SeekSpriteAnim(sprite, 0);
+}
+
+an_walk_any_2_macro(sub_8096100, sub_80960C8, npc_obj_ministep_stop_on_arrival, DIR_SOUTH, 1)
+an_walk_any_2_macro(sub_8096140, sub_80960C8, npc_obj_ministep_stop_on_arrival, DIR_NORTH, 1)
+an_walk_any_2_macro(sub_8096180, sub_80960C8, npc_obj_ministep_stop_on_arrival, DIR_WEST, 1)
+an_walk_any_2_macro(sub_80961C0, sub_80960C8, npc_obj_ministep_stop_on_arrival, DIR_EAST, 1)