diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-21 19:27:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-21 19:27:40 +0400 |
commit | 62a73381a7ec63e75960d3c9545c638c85d3b06a (patch) | |
tree | 25d16dfc4c245bacb98c3737c3817d1a52ce8d93 /source/gameengine/Ketsji/KX_IpoActuator.cpp | |
parent | 1bb7cfded603028db0d52b3c0917900e83b858e6 (diff) |
use fabsf when using floats.
Diffstat (limited to 'source/gameengine/Ketsji/KX_IpoActuator.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_IpoActuator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_IpoActuator.cpp b/source/gameengine/Ketsji/KX_IpoActuator.cpp index 7e7e7f8cef2..5599f3e31c6 100644 --- a/source/gameengine/Ketsji/KX_IpoActuator.cpp +++ b/source/gameengine/Ketsji/KX_IpoActuator.cpp @@ -379,7 +379,7 @@ bool KX_IpoActuator::Update(double curtime, bool frame) void KX_IpoActuator::ResetStartTime() { - this->m_starttime = -2.0*fabs(this->m_endframe - this->m_startframe) - 1.0; + this->m_starttime = -2.0f * fabsf(this->m_endframe - this->m_startframe) - 1.0f; } int KX_IpoActuator::string2mode(const char *modename) |