npc_coords_shift

This commit is contained in:
PikalaxALT
2017-09-08 21:27:02 -04:00
parent 43c3b9fdff
commit 70e982d1fa
3 changed files with 12 additions and 14 deletions

View File

@@ -1222,6 +1222,15 @@ 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;
mapObject->coords2.x += x;
mapObject->coords2.y += y;
}
void npc_coords_shift(struct MapObject *mapObject, s16 x, s16 y)
{
mapObject->coords3.x = mapObject->coords2.x;
mapObject->coords3.y = mapObject->coords2.y;
mapObject->coords2.x = x;
mapObject->coords2.y = y;
}