From 332334a876da21687911c6d22cf4a5dcb2cb586a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 31 Dec 2013 15:00:31 +0300 Subject: add pet offset if owner is moving. New pet db attributes: moveOffsetX, moveOffsetY --- src/resources/db/petdb.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/resources/db') diff --git a/src/resources/db/petdb.cpp b/src/resources/db/petdb.cpp index f975c25f9..046146cce 100644 --- a/src/resources/db/petdb.cpp +++ b/src/resources/db/petdb.cpp @@ -105,6 +105,10 @@ void PETDB::load() "sitOffsetX", 0)); currentInfo->setSitOffsetY(XML::getProperty(petNode, "sitOffsetY", 1)); + currentInfo->setMoveOffsetX(XML::getProperty(petNode, + "moveOffsetX", 0)); + currentInfo->setMoveOffsetY(XML::getProperty(petNode, + "moveOffsetY", 1)); currentInfo->setThinkTime(XML::getProperty(petNode, "thinkTime", 500) / 10); -- cgit v1.2.3-70-g09d2