summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-11 20:12:59 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-11 20:12:59 +0300
commitf9209b4a764e85a7ae0e40eee654b543d2ccf2ae (patch)
tree0675b616fa7a23bca8527f3257a8fae85326efd2 /src/being/being.cpp
parentd69d02ec39d5db3393b084825ef20d70831643dc (diff)
downloadManaVerse-f9209b4a764e85a7ae0e40eee654b543d2ccf2ae.tar.gz
ManaVerse-f9209b4a764e85a7ae0e40eee654b543d2ccf2ae.tar.bz2
ManaVerse-f9209b4a764e85a7ae0e40eee654b543d2ccf2ae.tar.xz
ManaVerse-f9209b4a764e85a7ae0e40eee654b543d2ccf2ae.zip
fix pet position after owner rotation if near owner located collisions.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp2
1 files changed, 1 insertions, 1 deletions
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)
{