diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-25 13:49:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-25 13:49:26 +0300 |
commit | db67d909cfa5d6a53552bbdb80c215fb382f00d5 (patch) | |
tree | 9b6dfb3913badc01566a20969dfce73a506380d1 /src/being/being.cpp | |
parent | 2d686aa554935a888283fb5f33f4f6e76465fe2d (diff) | |
download | manaplus-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.cpp | 5 |
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: |