From 427e97031a188a2830c6d15b2befa7664adfec41 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 Dec 2016 01:17:53 +0300 Subject: Add A_UNLIKELY into CompoundSprite::update. --- src/being/compoundsprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/being/compoundsprite.cpp') 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) -- cgit v1.2.3-60-g2f50