npc_coords_shift
This commit is contained in:
1 parent
43c3b9fdff
commit
70e982d1fa
3 files changed
+12
-14
No files matched your search
+11
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user