Advertisement
fggkyle

Untitled

Sep 25th, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. void func_80122868(GlobalContext *globalCtx, ActorPlayer *player) {
  2. GraphicsContext *temp_s0;
  3. s32 temp_v0;
  4. s8 temp_v1;
  5. u8 temp_a0;
  6. u8 temp_a0_2;
  7. s32 phi_v0;
  8. s32 phi_v1;
  9.  
  10. temp_v1 = player->unkD5C;
  11. temp_s0 = globalCtx->state.gfxCtx;
  12. if ((s32) temp_v1 > 0) {
  13. temp_v0 = 0x32 - temp_v1;
  14. if (temp_v0 < 8) {
  15. phi_v0 = 8;
  16. } else {
  17. phi_v1 = temp_v0;
  18. if (temp_v0 >= 0x29) {
  19. phi_v1 = 0x28;
  20. }
  21. phi_v0 = phi_v1;
  22. }
  23. temp_a0 = player->unkB5F + phi_v0;
  24. player->unkB5F = temp_a0;
  25. temp_s0->polyOpa.p = Gfx_SetFog(temp_s0->polyOpa.p, 0xFF, 0, 0, 0, 0, 0xFA0 - (s32) (Math_Coss((s16) ((s32) (temp_a0 * 0x1000000) >> 0x10)) * 2000.0f));
  26. return;
  27. }
  28. if (*(&gSaveContext + 0x1016) != 0) {
  29. temp_a0_2 = player->unkB5F + 0xA;
  30. player->unkB5F = temp_a0_2;
  31. temp_s0->polyOpa.p = Gfx_SetFog(temp_s0->polyOpa.p, 0, 0, 0xFF, 0, 0, 0xFA0 - (s32) (Math_Coss((s16) ((s32) (temp_a0_2 * 0x1000000) >> 0x10)) * 2000.0f));
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement