func_801A7D64 OK

This commit is contained in:
Luciano Ciccariello 2022-10-17 22:01:32 +01:00
parent e722b5bf07
commit a5f741f3e4

View File

@ -10,7 +10,27 @@ void MoveEntity();
void func_801B5794(u8);
void func_801B6B60(Entity *);
INCLUDE_ASM("asm/st/st0/nonmatchings/27D64", func_801A7D64);
extern u16 D_801805BC[];
extern ObjInit2 D_80180638[];
void func_801A7D64(Entity *arg0) {
s32 temp_v0;
ObjInit2 *temp_s0 = &D_80180638[arg0->subId];
if (arg0->initState == 0) {
InitializeEntity(D_801805BC);
arg0->animationSet = temp_s0->animationSet;
arg0->zPriority = temp_s0->zPriority;
arg0->unk5A = temp_s0->unk4.data;
arg0->palette = temp_s0->palette;
arg0->unk19 = temp_s0->unk8;
arg0->unk18 = temp_s0->unkA;
temp_v0 = temp_s0->unkC;
if (temp_v0 != 0) {
arg0->unk34 = temp_v0;
}
}
AnimateEntity(temp_s0->unk10, arg0);
}
#ifndef NON_MATCHING
INCLUDE_ASM("asm/st/st0/nonmatchings/27D64", func_801A7E2C);