summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 613e692a..45a621e4 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -664,6 +664,20 @@ void Being::draw(Graphics *graphics, int offsetX, int offsetY) const
}
}
+void Being::drawSpriteAt(Graphics *graphics, int x, int y) const
+{
+ const int px = x - 16;
+ const int py = y - 32;
+
+ for (SpriteConstIterator it = mSprites.begin(); it != mSprites.end(); it++)
+ if (*it)
+ {
+ if ((*it)->getAlpha() != mAlpha)
+ (*it)->setAlpha(mAlpha);
+ (*it)->draw(graphics, px, py);
+ }
+}
+
void Being::drawEmotion(Graphics *graphics, int offsetX, int offsetY)
{
if (!mEmotion)