summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-25 14:54:25 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-25 14:54:25 +0300
commit3e43345f804886a3a6ed7c0e378612612de4f4a5 (patch)
treeea7e36388a7ac1cc57ced5b33651b919302b3804 /src/resources/db
parentdb67d909cfa5d6a53552bbdb80c215fb382f00d5 (diff)
downloadmanaverse-3e43345f804886a3a6ed7c0e378612612de4f4a5.tar.gz
manaverse-3e43345f804886a3a6ed7c0e378612612de4f4a5.tar.bz2
manaverse-3e43345f804886a3a6ed7c0e378612612de4f4a5.tar.xz
manaverse-3e43345f804886a3a6ed7c0e378612612de4f4a5.zip
add support for pet offsets if owner is sitting.
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/petdb.cpp4
1 files changed, 4 insertions, 0 deletions
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;