Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void func_80122868(GlobalContext *globalCtx, ActorPlayer *player) {
- GraphicsContext *temp_s0;
- s32 temp_v0;
- s8 temp_v1;
- u8 temp_a0;
- u8 temp_a0_2;
- s32 phi_v0;
- s32 phi_v1;
- temp_v1 = player->unkD5C;
- temp_s0 = globalCtx->state.gfxCtx;
- if ((s32) temp_v1 > 0) {
- temp_v0 = 0x32 - temp_v1;
- if (temp_v0 < 8) {
- phi_v0 = 8;
- } else {
- phi_v1 = temp_v0;
- if (temp_v0 >= 0x29) {
- phi_v1 = 0x28;
- }
- phi_v0 = phi_v1;
- }
- temp_a0 = player->unkB5F + phi_v0;
- player->unkB5F = temp_a0;
- 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));
- return;
- }
- if (*(&gSaveContext + 0x1016) != 0) {
- temp_a0_2 = player->unkB5F + 0xA;
- player->unkB5F = temp_a0_2;
- 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));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement