summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-25 12:50:04 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-25 12:50:04 +0300
commit2d686aa554935a888283fb5f33f4f6e76465fe2d (patch)
tree069f5b649a79bd47680224d094d71892eac53ef5
parent5c0999cb674ceb43d2244e4eaba225f8ffa4ccb4 (diff)
downloadmv-2d686aa554935a888283fb5f33f4f6e76465fe2d.tar.gz
mv-2d686aa554935a888283fb5f33f4f6e76465fe2d.tar.bz2
mv-2d686aa554935a888283fb5f33f4f6e76465fe2d.tar.xz
mv-2d686aa554935a888283fb5f33f4f6e76465fe2d.zip
update pet position if owner changed direction.
-rw-r--r--src/being/being.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index a8b3eaf8c..fed51529f 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1337,6 +1337,8 @@ void Being::setDirection(const uint8_t direction)
if (mAnimationEffect)
mAnimationEffect->setSpriteDirection(dir);
recalcSpritesOrder();
+ if (mPet)
+ mPet->petLogic();
}
uint8_t Being::calcDirection() const