summaryrefslogtreecommitdiff
path: root/src/simpleanimation.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-24 18:28:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-24 21:06:51 +0300
commita306ecf96736779b08d1de7ec994d3d741d5dc61 (patch)
tree5a64809354d2c5f672a34fc9578975ab76920b5b /src/simpleanimation.cpp
parent6053e0797465a15da30b8d645c8ac7c95b596c69 (diff)
downloadmanaverse-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.gz
manaverse-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.bz2
manaverse-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.xz
manaverse-a306ecf96736779b08d1de7ec994d3d741d5dc61.zip
fix code style.
Diffstat (limited to 'src/simpleanimation.cpp')
-rw-r--r--src/simpleanimation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simpleanimation.cpp b/src/simpleanimation.cpp
index 91f491ffe..14996f577 100644
--- a/src/simpleanimation.cpp
+++ b/src/simpleanimation.cpp
@@ -97,7 +97,7 @@ void SimpleAnimation::setFrame(int frame)
if (frame < 0)
frame = 0;
- const unsigned int len = mAnimation->getLength();
+ const unsigned int len = static_cast<unsigned>(mAnimation->getLength());
if (static_cast<unsigned>(frame) >= len)
frame = len - 1;
mAnimationPhase = frame;
@@ -106,7 +106,7 @@ void SimpleAnimation::setFrame(int frame)
bool SimpleAnimation::update(const int timePassed)
{
- if (!mCurrentFrame || !mAnimation || !mInitialized || !mAnimation)
+ if (!mCurrentFrame || !mAnimation || !mInitialized)
return false;
bool updated(false);