From 08f3a03547c2179bc799d4360ef68f4bf674764b Mon Sep 17 00:00:00 2001 From: krzys-h Date: Mon, 21 Mar 2016 20:51:18 +0100 Subject: [PATCH] Fixed choppy part rotation animations, closes #742 While most visible on the astronaut model, this fix actually applies to all objects --- src/math/func.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/math/func.h b/src/math/func.h index 4bbd4743..66ee974e 100644 --- a/src/math/func.h +++ b/src/math/func.h @@ -169,10 +169,10 @@ inline bool TestAngle(float angle, float min, float max) } //! Calculates a value (radians) proportional between a and b (degrees) -inline float PropAngle(int a, int b, float p) +inline float PropAngle(float a, float b, float p) { - float aa = static_cast(a) * DEG_TO_RAD; - float bb = static_cast(b) * DEG_TO_RAD; + float aa = a * DEG_TO_RAD; + float bb = b * DEG_TO_RAD; return aa + p * (bb - aa); }