From f9209b4a764e85a7ae0e40eee654b543d2ccf2ae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 11 Jan 2014 20:12:59 +0300 Subject: fix pet position after owner rotation if near owner located collisions. --- src/being/being.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/being/being.cpp b/src/being/being.cpp index e155dc886..5d4e741c4 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -1657,7 +1657,7 @@ void Being::petLogic() setTileCoords(dstX, dstY); Net::getPetHandler()->spawn(mOwner, dstX, dstY); } - else if (divX > followDist || divY > followDist) + else if (!followDist || divX > followDist || divY > followDist) { if (!dist) { -- cgit v1.2.3-60-g2f50