From 5eae02936bbd96faf15d35ae8a6d141a904356f3 Mon Sep 17 00:00:00 2001 From: MysterD Date: Thu, 4 May 2023 01:43:01 -0700 Subject: [PATCH] Whoops --- src/pc/utils/misc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pc/utils/misc.c b/src/pc/utils/misc.c index d10513e1..1f29afbc 100644 --- a/src/pc/utils/misc.c +++ b/src/pc/utils/misc.c @@ -214,9 +214,8 @@ static void rot_mat_to_rot_quat(Vec4f q, Vec3f a[3]) { : 3; // adjust signs of coefficients; base on greatest magnitude to improve float accuracy + f32 divFactor = 0; switch (maxCompoMagCase) { - f32 divFactor = 0; - case 0: divFactor = 0.25f / q[0]; q[1] = (a[1][2] - a[2][1]) * divFactor; @@ -505,7 +504,7 @@ void delta_interpolate_mtx_accurate(Mtx* out, Mtx* a, Mtx* b, f32 delta) { void delta_interpolate_mtx(Mtx* out, Mtx* a, Mtx* b, f32 delta) { // HACK: Limit accurate interpolation to 64-bit builds - if (sizeof(int) > 4) { + if (sizeof(void*) > 4) { if (configInterpolationMode) { delta_interpolate_mtx_accurate(out, a, b, delta); return;