diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-29 01:17:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-29 01:17:53 +0300 |
commit | 427e97031a188a2830c6d15b2befa7664adfec41 (patch) | |
tree | 8e9c912651aaffc7f3c6611bdb3f81f4a23017f8 /src/being | |
parent | 8c897eb069644fa756105d122d11499462b8b760 (diff) | |
download | manaverse-427e97031a188a2830c6d15b2befa7664adfec41.tar.gz manaverse-427e97031a188a2830c6d15b2befa7664adfec41.tar.bz2 manaverse-427e97031a188a2830c6d15b2befa7664adfec41.tar.xz manaverse-427e97031a188a2830c6d15b2befa7664adfec41.zip |
Add A_UNLIKELY into CompoundSprite::update.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/compoundsprite.cpp | 2 |
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) |