summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/being.cpp')
-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 6ad8f5a9b..303e9f8f9 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1520,7 +1520,7 @@ void Being::petLogic()
setAction(BeingAction::STAND, 0);
fixPetSpawnPos(dstX, dstY);
setTileCoords(dstX, dstY);
- Net::getPetHandler()->spawn(mOwner, mId, dstX, dstY);
+ petHandler->spawn(mOwner, mId, dstX, dstY);
}
else if (!followDist || divX > followDist || divY > followDist)
{
@@ -1573,7 +1573,7 @@ void Being::petLogic()
if (mX != dstX || mY != dstY)
{
setPath(mMap->findPath(mX, mY, dstX, dstY, blockWalkMask));
- Net::getPetHandler()->move(mOwner, mId, mX, mY, dstX, dstY);
+ petHandler->move(mOwner, mId, mX, mY, dstX, dstY);
return;
}
}
@@ -3137,7 +3137,7 @@ void Being::addPet(const int id)
int dstY = mY;
being->fixPetSpawnPos(dstX, dstY);
being->setTileCoords(dstX, dstY);
- Net::getPetHandler()->spawn(this, being->mId, dstX, dstY);
+ petHandler->spawn(this, being->mId, dstX, dstY);
}
}