diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-31 15:00:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-31 15:00:31 +0300 |
commit | 332334a876da21687911c6d22cf4a5dcb2cb586a (patch) | |
tree | a139c3d8562d2c9ca73b3b5f6ba079034b4bb684 /src/resources/db | |
parent | 6e4517d3f46f11fc47b77e92bd2c439fdb5738b2 (diff) | |
download | manaplus-332334a876da21687911c6d22cf4a5dcb2cb586a.tar.gz manaplus-332334a876da21687911c6d22cf4a5dcb2cb586a.tar.bz2 manaplus-332334a876da21687911c6d22cf4a5dcb2cb586a.tar.xz manaplus-332334a876da21687911c6d22cf4a5dcb2cb586a.zip |
add pet offset if owner is moving.
New pet db attributes: moveOffsetX, moveOffsetY
Diffstat (limited to 'src/resources/db')
-rw-r--r-- | src/resources/db/petdb.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |