From 94342625a7e97c1f4adda6f0788c85c8d112b3a5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 31 Dec 2013 15:07:43 +0300 Subject: add pet offset if owner is dead. New pet db attributes: deadOffsetX, deadOffsetY --- src/being/being.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/being') 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: -- cgit v1.2.3-70-g09d2