summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-04 21:24:29 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-04 21:39:07 +0300
commit2521a791d764920c194e8fe299110e98dc2e5ab3 (patch)
tree9894d9cabae064e3ab8ab0d43864c152079a750d /src/being/being.cpp
parent9706e377c799d4b2c0a9f88c8ba6768bf2ea858c (diff)
downloadmv-2521a791d764920c194e8fe299110e98dc2e5ab3.tar.gz
mv-2521a791d764920c194e8fe299110e98dc2e5ab3.tar.bz2
mv-2521a791d764920c194e8fe299110e98dc2e5ab3.tar.xz
mv-2521a791d764920c194e8fe299110e98dc2e5ab3.zip
Remove getter getSprite from compoundsprite.
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 0d894c6ff..b3a6fbeaa 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2899,7 +2899,7 @@ void Being::drawSprites(Graphics *restrict const graphics,
if (rSprite == 1)
continue;
- Sprite *restrict const sprite = getSprite(mSpriteRemap[f]);
+ Sprite *restrict const sprite = mSprites[mSpriteRemap[f]];
if (sprite)
{
sprite->setAlpha(mAlpha);
@@ -2919,7 +2919,7 @@ void Being::drawSpritesSDL(Graphics *restrict const graphics,
if (rSprite == 1)
continue;
- const Sprite *restrict const sprite = getSprite(mSpriteRemap[f]);
+ const Sprite *restrict const sprite = mSprites[mSpriteRemap[f]];
if (sprite)
sprite->draw(graphics, posX, posY);
}