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 | |
parent | 2d686aa554935a888283fb5f33f4f6e76465fe2d (diff) | |
download | manaverse-db67d909cfa5d6a53552bbdb80c215fb382f00d5.tar.gz manaverse-db67d909cfa5d6a53552bbdb80c215fb382f00d5.tar.bz2 manaverse-db67d909cfa5d6a53552bbdb80c215fb382f00d5.tar.xz manaverse-db67d909cfa5d6a53552bbdb80c215fb382f00d5.zip |
fix pet correct position detection.
-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: |