summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-12 16:54:55 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-12 16:54:55 +0300
commitc81199bab9f943e187ce8b1347bd06d2395674e6 (patch)
tree1fae31ed74ad2ca4ca0c649e8020210fc78625e1 /src/being
parente06ebbc33fae83c4817a39af15fa0784ac233459 (diff)
downloadplus-c81199bab9f943e187ce8b1347bd06d2395674e6.tar.gz
plus-c81199bab9f943e187ce8b1347bd06d2395674e6.tar.bz2
plus-c81199bab9f943e187ce8b1347bd06d2395674e6.tar.xz
plus-c81199bab9f943e187ce8b1347bd06d2395674e6.zip
in pethandler add pet id parameter.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 5c89ba579..6e5fa5e92 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1663,7 +1663,7 @@ void Being::petLogic()
setAction(Being::STAND, 0);
fixPetSpawnPos(dstX, dstY);
setTileCoords(dstX, dstY);
- Net::getPetHandler()->spawn(mOwner, dstX, dstY);
+ Net::getPetHandler()->spawn(mOwner, mId, dstX, dstY);
}
else if (!followDist || divX > followDist || divY > followDist)
{
@@ -1716,7 +1716,7 @@ void Being::petLogic()
if (mX != dstX || mY != dstY)
{
setPath(mMap->findPath(mX, mY, dstX, dstY, walkMask));
- Net::getPetHandler()->move(mOwner, mX, mY, dstX, dstY);
+ Net::getPetHandler()->move(mOwner, mId, mX, mY, dstX, dstY);
return;
}
}
@@ -3232,7 +3232,7 @@ void Being::addPet(const int id)
int dstY = mY;
being->fixPetSpawnPos(dstX, dstY);
being->setTileCoords(dstX, dstY);
- Net::getPetHandler()->spawn(this, dstX, dstY);
+ Net::getPetHandler()->spawn(this, being->mId, dstX, dstY);
}
}