summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-29 01:17:53 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-29 01:17:53 +0300
commit427e97031a188a2830c6d15b2befa7664adfec41 (patch)
tree8e9c912651aaffc7f3c6611bdb3f81f4a23017f8
parent8c897eb069644fa756105d122d11499462b8b760 (diff)
downloadmv-427e97031a188a2830c6d15b2befa7664adfec41.tar.gz
mv-427e97031a188a2830c6d15b2befa7664adfec41.tar.bz2
mv-427e97031a188a2830c6d15b2befa7664adfec41.tar.xz
mv-427e97031a188a2830c6d15b2befa7664adfec41.zip
Add A_UNLIKELY into CompoundSprite::update.
-rw-r--r--src/being/compoundsprite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp
index 297cb5da1..178e5858a 100644
--- a/src/being/compoundsprite.cpp
+++ b/src/being/compoundsprite.cpp
@@ -128,7 +128,7 @@ bool CompoundSprite::play(const std::string &action)
bool CompoundSprite::update(const int time)
{
bool ret = false;
- if (!mLastTime)
+ if (A_UNLIKELY(mLastTime == 0))
mStartTime = time;
mLastTime = time;
FOR_EACH (SpriteIterator, it, mSprites)