summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-12 17:02:17 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-12 17:02:17 +0200
commit992c2920f7e1940aa293e27cf4ea7ec23668a673 (patch)
tree4328076c6585a015433cb8bb763eab687da675bc /src/being.cpp
parent428770c113abf002e5cc0b79ae872db1f26cf283 (diff)
downloadplus-992c2920f7e1940aa293e27cf4ea7ec23668a673.tar.gz
plus-992c2920f7e1940aa293e27cf4ea7ec23668a673.tar.bz2
plus-992c2920f7e1940aa293e27cf4ea7ec23668a673.tar.xz
plus-992c2920f7e1940aa293e27cf4ea7ec23668a673.zip
Add items attribute what allow hide other sprites only by id.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 7851725d4..6d26f74a7 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -1901,7 +1901,10 @@ void Being::recalcSpritesOrder()
const ItemInfo &info = ItemDB::get(id);
if (info.getRemoveSprite() > 0)
- mSpriteHide[info.getRemoveSprite()] = 1;
+ {
+ if (info.isRemoveSpriteId(mSpriteIDs[info.getRemoveSprite()]))
+ mSpriteHide[info.getRemoveSprite()] = 1;
+ }
if (info.getDrawBefore() > 0)
{