diff options
Diffstat (limited to 'examples/ThirdPartyLibs/Gwen/Anim.cpp')
-rw-r--r-- | examples/ThirdPartyLibs/Gwen/Anim.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/ThirdPartyLibs/Gwen/Anim.cpp b/examples/ThirdPartyLibs/Gwen/Anim.cpp index 4094a492a..9428498c7 100644 --- a/examples/ThirdPartyLibs/Gwen/Anim.cpp +++ b/examples/ThirdPartyLibs/Gwen/Anim.cpp @@ -5,8 +5,9 @@ */ #include "Gwen/Anim.h" -#include "Gwen/Utility.h" #include <math.h> +#include <cmath> +#include "Gwen/Utility.h" using namespace Gwen; @@ -123,13 +124,12 @@ void Gwen::Anim::TimedAnimation::Think() if (fDelta < 0.0f) fDelta = 0.0f; if (fDelta > 1.0f) fDelta = 1.0f; - Run(pow(fDelta, m_fEase)); + Run(std::pow(fDelta, m_fEase)); - if (fDelta == 1.0f) - { - m_bFinished = true; - OnFinish(); - } + if (fDelta == 1.0f) { + m_bFinished = true; + OnFinish(); + } } bool Gwen::Anim::TimedAnimation::Finished() |