summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-31 15:07:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-31 15:07:43 +0300
commit94342625a7e97c1f4adda6f0788c85c8d112b3a5 (patch)
tree2f90c467e7fc598054a3ebc5b727a8ac21041e02 /src/being/being.cpp
parent332334a876da21687911c6d22cf4a5dcb2cb586a (diff)
downloadmanaverse-94342625a7e97c1f4adda6f0788c85c8d112b3a5.tar.gz
manaverse-94342625a7e97c1f4adda6f0788c85c8d112b3a5.tar.bz2
manaverse-94342625a7e97c1f4adda6f0788c85c8d112b3a5.tar.xz
manaverse-94342625a7e97c1f4adda6f0788c85c8d112b3a5.zip
add pet offset if owner is dead.
New pet db attributes: deadOffsetX, deadOffsetY
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 600de11e8..d87eb5da6 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -3258,8 +3258,12 @@ void Being::fixPetSpawnPos(int &dstX, int &dstY) const
offsetY1 = mInfo->getMoveOffsetY();
break;
- case ATTACK:
case DEAD:
+ offsetX1 = mInfo->getDeadOffsetX();
+ offsetY1 = mInfo->getDeadOffsetY();
+ break;
+
+ case ATTACK:
case SPAWN:
case HURT:
case STAND: