Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void func_80B49F88(Actor* thisx, GlobalContext* globalCtx) {
- s32 sp38;
- f32 temp_f0;
- if (Object_IsLoaded(&globalCtx->objectCtx, thisx->unk2F4) != 0) {
- sp38 = gSaveContext.time;
- thisx->objBankIndex = thisx->unk2F4;
- Actor_SetObjectSegment(globalCtx, thisx);
- func_80B44F58();
- SkelAnime_InitSV(globalCtx, thisx + 0x144, 0x6013928, 0x6014088, thisx + 0x188, thisx + 0x212, 0x17);
- temp_f0 = D_80B4EF8C;
- func_80B45C04(thisx + 0x324, D_80B4EA90, 1, D_80B4EB00, 1, &D_801D15BC, 0x64, temp_f0, D_80B4EF90, temp_f0);
- func_80B44540(thisx, globalCtx);
- func_80B44570(thisx);
- func_80B44C24(thisx, globalCtx);
- func_80B43F0C(thisx);
- func_80B4516C(thisx);
- if ((gSaveContext.unkF0D & 0x20) != 0) {
- if ((gSaveContext.unkF2E & 0x10) != 0) {
- thisx->textId = 0x332E;
- } else {
- thisx->textId = 0x332D;
- }
- } else {
- thisx->textId = 0x332C;
- }
- if (sp38 < 0xC000) {
- if (sp38 < 0x1555) {
- block_8:
- thisx->update = func_80B4A168;
- thisx->draw = NULL;
- return;
- }
- if (sp38 < 0x4000) {
- if (sp38 >= 0x1555) {
- if (sp38 < 0x1800) {
- thisx->update = func_80B4A1B8;
- thisx->draw = func_80B4E324;
- func_80B49BD0(thisx);
- return;
- }
- block_13:
- Actor_MarkForDeath(thisx);
- return;
- }
- goto block_13;
- }
- goto block_13;
- }
- goto block_8;
- }
- // Duplicate return node #14. Try simplifying control flow for better match
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement