summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-05 14:50:30 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-05 14:50:30 +0300
commit70fc07029e12a11e7b1943b6a1856f02a8800a39 (patch)
tree3662905cb7cc81b1fb9561dfd67d18f5599ccd1d /src/being/being.cpp
parent3f43bdd12b50a2ff3afb687fd3d2101865e946f2 (diff)
downloadplus-70fc07029e12a11e7b1943b6a1856f02a8800a39.tar.gz
plus-70fc07029e12a11e7b1943b6a1856f02a8800a39.tar.bz2
plus-70fc07029e12a11e7b1943b6a1856f02a8800a39.tar.xz
plus-70fc07029e12a11e7b1943b6a1856f02a8800a39.zip
Replace in Being some calls getNumberOfLayers to CompountSprite::getNumberOfLayers.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 319bf34eb..a0add020e 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2906,7 +2906,7 @@ void Being::drawSprites(Graphics *restrict const graphics,
const int posX,
const int posY) const restrict2
{
- const int sz = getNumberOfLayers();
+ const int sz = CompoundSprite::getNumberOfLayers();
for (int f = 0; f < sz; f ++)
{
const int rSprite = mSpriteHide[mSpriteRemap[f]];
@@ -3431,7 +3431,7 @@ int Being::searchSlotValue(const std::vector<int> &restrict slotRemap,
if (slotRemap[slot] == val)
return CAST_S32(slot);
}
- return getNumberOfLayers() - 1;
+ return CompoundSprite::getNumberOfLayers() - 1;
}
void Being::searchSlotValueItr(std::vector<int>::iterator &restrict it,