summaryrefslogtreecommitdiff
path: root/src/being
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 /src/being
parent5c0999cb674ceb43d2244e4eaba225f8ffa4ccb4 (diff)
downloadManaVerse-2d686aa554935a888283fb5f33f4f6e76465fe2d.tar.gz
ManaVerse-2d686aa554935a888283fb5f33f4f6e76465fe2d.tar.bz2
ManaVerse-2d686aa554935a888283fb5f33f4f6e76465fe2d.tar.xz
ManaVerse-2d686aa554935a888283fb5f33f4f6e76465fe2d.zip
update pet position if owner changed direction.
Diffstat (limited to 'src/being')
-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