summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-04 21:39:15 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-04 21:39:15 +0300
commit1a31d0573e3e714664631ac40686c0d61b4bccc9 (patch)
treef8cd5bb7265820d29cfda5c83a2094a793f5a795 /src/being/being.cpp
parent2521a791d764920c194e8fe299110e98dc2e5ab3 (diff)
downloadmanaverse-1a31d0573e3e714664631ac40686c0d61b4bccc9.tar.gz
manaverse-1a31d0573e3e714664631ac40686c0d61b4bccc9.tar.bz2
manaverse-1a31d0573e3e714664631ac40686c0d61b4bccc9.tar.xz
manaverse-1a31d0573e3e714664631ac40686c0d61b4bccc9.zip
Remove getter size from compoundsprite.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index b3a6fbeaa..10b4f7acf 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2467,7 +2467,7 @@ void Being::setSprite(const unsigned int slot,
if (!charServerHandler || slot >= charServerHandler->maxSprite())
return;
- if (slot >= CAST_U32(size()))
+ if (slot >= CAST_U32(mSprites.size()))
ensureSize(slot + 1);
if (slot >= CAST_U32(mSpriteIDs.size()))
@@ -2912,8 +2912,8 @@ void Being::drawSpritesSDL(Graphics *restrict const graphics,
const int posX,
const int posY) const restrict2
{
- const unsigned int sz = CAST_U32(size());
- for (unsigned int f = 0; f < sz; f ++)
+ const size_t sz = mSprites.size();
+ for (size_t f = 0; f < sz; f ++)
{
const int rSprite = mSpriteHide[mSpriteRemap[f]];
if (rSprite == 1)
@@ -3115,7 +3115,7 @@ void Being::recalcSpritesOrder() restrict2
return;
// logger->log("recalcSpritesOrder");
- const size_t sz = size();
+ const size_t sz = mSprites.size();
if (sz < 1)
return;
@@ -3411,7 +3411,7 @@ void Being::recalcSpritesOrder() restrict2
int Being::searchSlotValue(const std::vector<int> &restrict slotRemap,
const int val) const restrict2
{
- const size_t sz = size();
+ const size_t sz = mSprites.size();
for (size_t slot = 0; slot < sz; slot ++)
{
if (slotRemap[slot] == val)