fggkyle

Untitled

Sep 2nd, 2020
1,166
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.     this->actor.textId = (gSaveContext.timer2Value < gSaveContext.highscores[4]) ? 0x6085 : 0x6084;
  8.     if (func_80AAF224(this, globalCtx, func_80AAF5EC)) {
  9.         this->unk_1F6 = 0;
  10.         timer = gSaveContext.timer2Value;
  11.         if ((s16)timer < gSaveContext.highscores[4]) {
  12.             gSaveContext.highscores[4] = timer;
  13.             return;
  14.         }
  15.     }
  16.      else {
  17.         LOG_HEX("((z_common_data.event_inf[1]) & (0x0001)) = %x\n", gSaveContext.eventInf[1] & 1, "../z_en_mm2.c", 541);
  18.         if ((gSaveContext.eventInf[1] & 1) == 0) {
  19.             this->unk_1F4 |= 2;
  20.             this->unk_1F4 &= ~0x1;
  21.             func_80AAEE50(this, 3, &this->unk_1F8);
  22.             this->actionFunc = func_80AAF330;
  23.         }
  24.     }
  25. }
RAW Paste Data