summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-25 17:13:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-25 17:13:24 +0300
commit8357e89fc0923f4b97cf8b990a4ffba2716bfabf (patch)
tree9253ddf8d30e97a947683e12dc195f3ec69ee7bc /src/being/being.cpp
parent63446aa820db2a6ad83cb25c64a013e9e1418bd5 (diff)
downloadmv-8357e89fc0923f4b97cf8b990a4ffba2716bfabf.tar.gz
mv-8357e89fc0923f4b97cf8b990a4ffba2716bfabf.tar.bz2
mv-8357e89fc0923f4b97cf8b990a4ffba2716bfabf.tar.xz
mv-8357e89fc0923f4b97cf8b990a4ffba2716bfabf.zip
add support for pet sit direction logic.
New pet db attribute: sitDirectionType It can be set same values like in directionType.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 235bd6455..7a3a198c1 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1713,7 +1713,8 @@ void Being::petLogic()
}
if (mAction == STAND)
{
- const int directionType = mInfo->getDirectionType();
+ const int directionType = mOwner->getCurrentAction() != SIT
+ ? mInfo->getDirectionType() : mInfo->getSitDirectionType();
int newDir = 0;
switch (directionType)
{