From d5cfc338376022a1ebbba54d06cd76c9adcc411f Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Sun, 30 Jul 2023 15:07:40 +0200 Subject: [PATCH] Change remainder func in vec_norm remainderf -> remainder --- src/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.c b/src/util.c index 0cfa17c..05dfdbc 100644 --- a/src/util.c +++ b/src/util.c @@ -135,8 +135,8 @@ void vec_clamp(vec3_t v) { } void vec_norm(vec3_t v) { - v.x = isfinite(v.x) ? remainderf(v.x, 360.0f) : 0.0f; - v.y = isfinite(v.y) ? remainderf(v.y, 360.0f) : 0.0f; + v.x = isfinite(v.x) ? remainder(v.x, 360) : 0; + v.y = isfinite(v.y) ? remainder(v.y, 360) : 0; v.z = 0.0f; }