Skip to content

Commit

Permalink
MapObjectManager_Get
Browse files Browse the repository at this point in the history
  • Loading branch information
red031000 committed Jul 22, 2024
1 parent 3dc9db1 commit b6a56a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions arm9/asm/map_object_s.s
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ sub_02058348: ; 0x02058348
_0205835E:
pop {r4, pc}

thumb_func_start MapObjectManager_GetMapObjectManager
MapObjectManager_GetMapObjectManager: ; 0x02058360
thumb_func_start MapObjectManager_Get
MapObjectManager_Get: ; 0x02058360
bx lr
.balign 4

Expand Down Expand Up @@ -697,12 +697,12 @@ MapObject_GetManager: ; 0x02058578

thumb_func_start sub_02058580
sub_02058580: ; 0x02058580
ldr r3, _02058588 ; =MapObjectManager_GetMapObjectManager
ldr r3, _02058588 ; =MapObjectManager_Get
add r0, #0xb4
ldr r0, [r0, #0x0]
bx r3
.balign 4
_02058588: .word MapObjectManager_GetMapObjectManager
_02058588: .word MapObjectManager_Get

thumb_func_start sub_0205858C
sub_0205858C: ; 0x0205858C
Expand Down
6 changes: 3 additions & 3 deletions arm9/src/map_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ extern void sub_02057E90(LocalMapObject *object, MapObjectManager *manager);
extern void sub_0205844C(LocalMapObject *object, u32 mapNo);
extern void sub_020581B4(LocalMapObject *object);
extern void MapObject_SetFlagsBits(LocalMapObject *object, MapObjectFlagBits bits);
extern MapObjectManager *MapObjectManager_GetMapObjectManager(MapObjectManager *manager);
extern MapObjectManager *MapObjectManager_Get(MapObjectManager *manager);
extern void sub_0205836C(MapObjectManager *manager);
extern void ObjectEvent_SetId(ObjectEvent *objectEvent, u32 id);
extern void ObjectEvent_SetSprite(ObjectEvent *objectEvent, u32 sprite);
Expand Down Expand Up @@ -275,7 +275,7 @@ static LocalMapObject *MapObject_CreateFromObjectEvent(MapObjectManager *manager
sub_020581B4(ret);
MapObject_SetFlagsBits(ret, MAPOBJECTFLAG_UNK2);
sub_02057CF0(manager, ret);
sub_0205836C(MapObjectManager_GetMapObjectManager(manager));
sub_0205836C(MapObjectManager_Get(manager));
return ret;
}

Expand Down Expand Up @@ -529,7 +529,7 @@ static void sub_02057AEC(MapObjectManager *manager, LocalMapObject *object) {
sub_020581B4(object);
sub_02057CF0(manager, object);
sub_0205866C(object);
sub_0205836C(MapObjectManager_GetMapObjectManager(manager));
sub_0205836C(MapObjectManager_Get(manager));
}

static void sub_02057B34(LocalMapObject *object) {
Expand Down

0 comments on commit b6a56a7

Please sign in to comment.