From 8357e89fc0923f4b97cf8b990a4ffba2716bfabf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Dec 2013 17:13:24 +0300 Subject: add support for pet sit direction logic. New pet db attribute: sitDirectionType It can be set same values like in directionType. --- src/being/being.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/being/being.cpp') 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) { -- cgit v1.2.3-60-g2f50