From 0bc2c5a53e4f3ca368fee00f3d98d9ea8ecc5c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre-Xavier=20Labont=C3=A9-Lamoureux?= Date: Thu, 10 Nov 2022 18:15:37 -0500 Subject: [PATCH] sky0f122ce8: Remove useless sqrtf as the result tends towards 1.0f --- src/game/sky.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/sky.c b/src/game/sky.c index 4a7750f97..eba9551bf 100644 --- a/src/game/sky.c +++ b/src/game/sky.c @@ -1334,7 +1334,7 @@ bool sky0f122ce8(struct skything38 *arg0, struct skything38 *arg1) f32 f0 = arg0->unk28 - arg1->unk28; f32 f2 = arg0->unk2c - arg1->unk2c; - return sqrtf(f0 * f0 + f2 * f2) < 1.0f ? true : false; + return f0 * f0 + f2 * f2 < 1.0f ? true : false; } Gfx *sky0f122d4c(Gfx *gdl, struct skything38 *arg1, struct skything38 *arg2, struct skything38 *arg3, f32 arg4, bool textured)