From 87ae654f3abc5ebc3d7b8f46b82a3a129470b78e Mon Sep 17 00:00:00 2001 From: Sparkling Shampoo Date: Wed, 13 Apr 2022 22:13:44 -0400 Subject: [PATCH] Fix cylinder-tri intersection for GCC due to FLT_EVAL_METHOD --- soh/src/code/sys_math3d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/src/code/sys_math3d.c b/soh/src/code/sys_math3d.c index d442b7c4a..39ffea881 100644 --- a/soh/src/code/sys_math3d.c +++ b/soh/src/code/sys_math3d.c @@ -1857,7 +1857,7 @@ s32 Math3D_CylTriVsIntersect(Cylinder16* cyl, TriNorm* tri, Vec3f* intersect) { } } - if (minDistSq != 1.e38f) { + if (minDistSq != (f32)1.e38f) { return true; }