diff options
| author | octorock <79596758+octorock@users.noreply.github.com> | 2022-06-06 12:42:25 +0200 |
|---|---|---|
| committer | octorock <79596758+octorock@users.noreply.github.com> | 2022-06-11 22:58:02 +0200 |
| commit | e11cfed066a3c7cc2fdbbdb34ca15e80b224997b (patch) | |
| tree | dafeda60efe80c74e94c1e073b7c80f0578dd70b /src/npc.c | |
| parent | 06d6f7aaa4502698ddef83821c258f835ea41fbd (diff) | |
Decompile some functions
Diffstat (limited to 'src/npc.c')
| -rw-r--r-- | src/npc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -144,7 +144,7 @@ typedef struct { u16 x; u16 y; } NPCStruct; -extern NPCStruct gUnk_02031EC0[100]; +extern NPCStruct gNPCData[100]; void InitNPC(Entity*); @@ -161,8 +161,8 @@ NONMATCH("asm/non_matching/arm_proxy/NPCUpdate.inc", void NPCUpdate(Entity* this gNPCFunctions[this->id][1](this); if ((this->health & 0x7f) != 0) { u32 temp = this->health & 0x7f; - gUnk_02031EC0[temp * 2 - 2].x = this->x.HALF.HI - gRoomControls.origin_x; - gUnk_02031EC0[temp * 2 - 2].y = this->y.HALF.HI - gRoomControls.origin_y; + gNPCData[temp * 2 - 2].x = this->x.HALF.HI - gRoomControls.origin_x; + gNPCData[temp * 2 - 2].y = this->y.HALF.HI - gRoomControls.origin_y; } DrawEntity(this); } |
