fggkyle

Untitled

Aug 29th, 2020
1,065
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void func_80AAF668(EnMm2 *this, GlobalContext *globalCtx) {
  2.     s32 timer;
  3.    
  4.     this->actor.posRot.rot.y = -0x3E80;
  5.     this->actor.shape.rot.y = this->actor.posRot.rot.y;
  6.     SkelAnime_FrameUpdateMatrix(&this->skelAnime);
  7.     //can be ternary, doesn't change codegen
  8.     if (gSaveContext.timer2Value < gSaveContext.unk_EC8) {
  9.         this->actor.textId = 0x6085;
  10.     } else {
  11.         this->actor.textId = 0x6084;
  12.     }
  13.     if (func_80AAF224(this, globalCtx, func_80AAF5EC) != 0) {
  14.         this->unk_1F6 = 0;
  15.         timer = gSaveContext.timer2Value;
  16.         if ((s16)timer < gSaveContext.unk_EC8) {
  17.             gSaveContext.unk_EC8 = timer;
  18.             return;
  19.         }
  20.     }
  21.      else {
  22.         LogUtils_LogThreadId("../z_en_mm2.c", 541);
  23.         osSyncPrintf("((z_common_data.event_inf[1]) & (0x0001)) = %x\n", gSaveContext.eventInf[1] & 1);
  24.         if ((gSaveContext.eventInf[1] & 1) == 0) {
  25.             this->unk_1F4 |= 2;
  26.             this->unk_1F4 &= ~0x1;
  27.             func_80AAEE50(this, 3, &this->unk_1F8);
  28.             this->actionFunc = func_80AAF330;
  29.         }
  30.     }
  31. }
RAW Paste Data