sub_8092AF8

This commit is contained in:
PikalaxALT
2017-09-16 18:24:58 -04:00
parent 589c34e30a
commit edd5c81a8e
2 changed files with 21 additions and 34 deletions

View File

@@ -3539,6 +3539,8 @@ dirn2anim(sub_8092A1C, gUnknown_0850DB38)
dirn2anim(sub_8092A2C, gUnknown_0850DB41)
dirn2anim(get_run_image_anim_num, gUnknown_0850DB4A)
// file boundary?
struct UnkStruct_085094AC {
const union AnimCmd *const *anims;
u8 animPos[4];
@@ -3605,6 +3607,25 @@ void obj_npc_animation_step(struct MapObject *mapObject, struct Sprite *sprite,
}
}
// file boundary?
u8 sub_8092AF8(s16 x1, s16 y1, s16 x2, s16 y2)
{
if (x1 > x2)
{
return DIR_WEST;
}
if (x1 < x2)
{
return DIR_EAST;
}
if (y1 > y2)
{
return DIR_NORTH;
}
return DIR_SOUTH;
}
asm(".section .text.get_face_direction_anim_id");
void FieldObjectClearAnimIfSpecialAnimActive(struct MapObject *);