mirror of
https://github.com/zeldaret/tmc
synced 2026-06-26 18:32:11 -04:00
Decompile some functions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user