diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-25 12:50:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-25 12:50:04 +0300 |
commit | 2d686aa554935a888283fb5f33f4f6e76465fe2d (patch) | |
tree | 069f5b649a79bd47680224d094d71892eac53ef5 /src/being/being.cpp | |
parent | 5c0999cb674ceb43d2244e4eaba225f8ffa4ccb4 (diff) | |
download | mv-2d686aa554935a888283fb5f33f4f6e76465fe2d.tar.gz mv-2d686aa554935a888283fb5f33f4f6e76465fe2d.tar.bz2 mv-2d686aa554935a888283fb5f33f4f6e76465fe2d.tar.xz mv-2d686aa554935a888283fb5f33f4f6e76465fe2d.zip |
update pet position if owner changed direction.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 2 |
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 |