summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-25 22:17:22 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-25 22:17:22 +0300
commita82ac0ca69b7972eb10b347eac5b6a308d67d462 (patch)
tree65ca65689e985cab8331e6edb877cc29288ea9f2 /src
parent0d06cc2ed6bbf6b6f53619e56cbd2fbda2a480a0 (diff)
downloadmanaplus-a82ac0ca69b7972eb10b347eac5b6a308d67d462.tar.gz
manaplus-a82ac0ca69b7972eb10b347eac5b6a308d67d462.tar.bz2
manaplus-a82ac0ca69b7972eb10b347eac5b6a308d67d462.tar.xz
manaplus-a82ac0ca69b7972eb10b347eac5b6a308d67d462.zip
fix typo in pets direction code.
Diffstat (limited to 'src')
-rw-r--r--src/being/being.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index bdd18b439..e7610d12d 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1732,9 +1732,9 @@ void Being::petLogic()
else if (dstX < dstX0)
newDir |= RIGHT;
if (dstY > dstY0)
- newDir != UP;
+ newDir |= UP;
else if (dstY < dstY0)
- newDir != DOWN;
+ newDir |= DOWN;
break;
case 3:
@@ -1743,9 +1743,9 @@ void Being::petLogic()
else if (dstX < dstX0)
newDir |= LEFT;
if (dstY > dstY0)
- newDir != DOWN;
+ newDir |= DOWN;
else if (dstY < dstY0)
- newDir != UP;
+ newDir |= UP;
break;
}
if (newDir && newDir != getDirection())