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/resources/db/petdb.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/resources/db') diff --git a/src/resources/db/petdb.cpp b/src/resources/db/petdb.cpp index 072dad7c0..631dceb60 100644 --- a/src/resources/db/petdb.cpp +++ b/src/resources/db/petdb.cpp @@ -103,8 +103,11 @@ void PETDB::load() currentInfo->setThinkTime(XML::getProperty(petNode, "thinkTime", 500) / 10); + currentInfo->setDirectionType(XML::getProperty(petNode, "directionType", 1)); + currentInfo->setSitDirectionType(XML::getProperty(petNode, + "sitDirectionType", 1)); SpriteDisplay display; for_each_xml_child_node(spriteNode, petNode) -- cgit v1.2.3-70-g09d2