diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-11 20:12:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-11 20:12:59 +0300 |
commit | f9209b4a764e85a7ae0e40eee654b543d2ccf2ae (patch) | |
tree | 0675b616fa7a23bca8527f3257a8fae85326efd2 | |
parent | d69d02ec39d5db3393b084825ef20d70831643dc (diff) | |
download | manaplus-f9209b4a764e85a7ae0e40eee654b543d2ccf2ae.tar.gz manaplus-f9209b4a764e85a7ae0e40eee654b543d2ccf2ae.tar.bz2 manaplus-f9209b4a764e85a7ae0e40eee654b543d2ccf2ae.tar.xz manaplus-f9209b4a764e85a7ae0e40eee654b543d2ccf2ae.zip |
fix pet position after owner rotation if near owner located collisions.
-rw-r--r-- | src/being/being.cpp | 2 |
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) { |