From 3ce937a1dbfa4d700538a7651181575e44eed299 Mon Sep 17 00:00:00 2001 From: s1lent Date: Mon, 26 Aug 2019 03:45:18 +0700 Subject: [PATCH] Unittest-win: Fixed demo failed --- regamedll/dlls/animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regamedll/dlls/animation.cpp b/regamedll/dlls/animation.cpp index 3382ea48..d639b08f 100644 --- a/regamedll/dlls/animation.cpp +++ b/regamedll/dlls/animation.cpp @@ -615,9 +615,9 @@ void QuaternionSlerp(vec_t *p, vec_t *q, float t, vec_t *qt) float sclp, sclq; float cosom = (p[0] * q[0] + p[1] * q[1] + p[2] * q[2] + p[3] * q[3]); - if ((1.0f + cosom) > 0.000001f) + if ((1.0 + cosom) > 0.000001) { - if ((1.0f - cosom) > 0.000001f) + if ((1.0 - cosom) > 0.000001) { real_t cosomega = Q_acos(real_t(cosom));