summaryrefslogtreecommitdiff
path: root/src/compoundsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-11-28 19:05:52 +0300
committerAndrei Karas <akaras@inbox.ru>2011-11-28 19:05:52 +0300
commitb6eb53b9abdf48b88cb1978b9af97f2a879d2717 (patch)
tree5aad5623d352ec0b4aa245856958c61a384861c7 /src/compoundsprite.cpp
parent4d453108f45f9fb2ff4f5715cc1b3ddd63d36a80 (diff)
parent71fe51d38a406012e166589b7b720d83c1ab3ade (diff)
downloadplus-stripped1.1.11.27.tar.gz
plus-stripped1.1.11.27.tar.bz2
plus-stripped1.1.11.27.tar.xz
plus-stripped1.1.11.27.zip
Merge commit 'v1.1.11.27' into strippedstripped1.1.11.27
Conflicts: data/Makefile.am
Diffstat (limited to 'src/compoundsprite.cpp')
-rw-r--r--src/compoundsprite.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/compoundsprite.cpp b/src/compoundsprite.cpp
index 3ee988cec..912c51404 100644
--- a/src/compoundsprite.cpp
+++ b/src/compoundsprite.cpp
@@ -544,6 +544,21 @@ void CompoundSprite::initCurrentCacheItem() const
}
}
+bool CompoundSprite::updateNumber(unsigned num)
+{
+ SpriteConstIterator it, it_end;
+ bool res(false);
+ for (it = begin(), it_end = end(); it != it_end; ++ it)
+ {
+ if (*it)
+ {
+ if ((*it)->updateNumber(num))
+ res = true;
+ }
+ }
+ return res;
+}
+
CompoundItem::CompoundItem() :
// alpha(1.0f),
image(nullptr),