From 917488eb7e2b61ce2bc88e99618ab8ce08de67b0 Mon Sep 17 00:00:00 2001 From: Alejandro Javier Asenjo Nitti Date: Sat, 13 Jan 2024 10:49:59 -0300 Subject: [PATCH] SQ macro --- src/main/fox_effect.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/fox_effect.c b/src/main/fox_effect.c index 7782c8cf..1375427f 100644 --- a/src/main/fox_effect.c +++ b/src/main/fox_effect.c @@ -3532,13 +3532,12 @@ void func_80081C5C(Effect* effect) { gPlayer->camEye.z - (gBosses->obj.pos.z + D_80177D20)) * 180.0f) / M_PI; - D_800D18E8 = ((-Math_Atan2F(gPlayer->camEye.y - gBosses->obj.pos.y, - sqrtf(((gPlayer->camEye.x - gBosses->obj.pos.x) * - (gPlayer->camEye.x - gBosses->obj.pos.x)) + - ((gPlayer->camEye.z - (gBosses->obj.pos.z + D_80177D20)) * - (gPlayer->camEye.z - (gBosses->obj.pos.z + D_80177D20)))))) * - 180.0f) / - M_PI; + D_800D18E8 = + ((-Math_Atan2F(gPlayer->camEye.y - gBosses->obj.pos.y, + sqrtf(SQ(gPlayer->camEye.x - gBosses->obj.pos.x) + + SQ((gPlayer->camEye.z - (gBosses->obj.pos.z + D_80177D20)))))) * + 180.0f) / + M_PI; } if (gBosses->timer_050 == 0) { gBosses->swork[39] = effect->index;