From 3e43345f804886a3a6ed7c0e378612612de4f4a5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Dec 2013 14:54:25 +0300 Subject: add support for pet offsets if owner is sitting. --- 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 d50c44dc7..7c84b006b 100644 --- a/src/resources/db/petdb.cpp +++ b/src/resources/db/petdb.cpp @@ -96,6 +96,10 @@ void PETDB::load() "offsetX", 0)); currentInfo->setTargetOffsetY(XML::getProperty(petNode, "offsetY", 1)); + currentInfo->setSitOffsetX(XML::getProperty(petNode, + "sitOffsetX", 0)); + currentInfo->setSitOffsetY(XML::getProperty(petNode, + "sitOffsetY", 1)); SpriteDisplay display; -- cgit v1.2.3-70-g09d2