summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-25 13:49:26 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-25 13:49:26 +0300
commitdb67d909cfa5d6a53552bbdb80c215fb382f00d5 (patch)
tree9b6dfb3913badc01566a20969dfce73a506380d1 /src/being/being.cpp
parent2d686aa554935a888283fb5f33f4f6e76465fe2d (diff)
downloadmanaplus-db67d909cfa5d6a53552bbdb80c215fb382f00d5.tar.gz
manaplus-db67d909cfa5d6a53552bbdb80c215fb382f00d5.tar.bz2
manaplus-db67d909cfa5d6a53552bbdb80c215fb382f00d5.tar.xz
manaplus-db67d909cfa5d6a53552bbdb80c215fb382f00d5.zip
fix pet correct position detection.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index fed51529f..00ef62e0a 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -3200,14 +3200,15 @@ void Being::fixPetSpawnPos(int &dstX, int &dstY) const
{
case LEFT:
offsetX = -offsetY1;
- offsetY = -offsetX1;
+ offsetY = offsetX1;
break;
case RIGHT:
offsetX = offsetY1;
- offsetY = offsetX1;
+ offsetY = -offsetX1;
break;
case UP:
offsetY = -offsetY;
+ offsetX = -offsetX;
break;
default:
case DOWN: