diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-25 22:17:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-25 22:17:22 +0300 |
commit | a82ac0ca69b7972eb10b347eac5b6a308d67d462 (patch) | |
tree | 65ca65689e985cab8331e6edb877cc29288ea9f2 /src/being/being.cpp | |
parent | 0d06cc2ed6bbf6b6f53619e56cbd2fbda2a480a0 (diff) | |
download | plus-a82ac0ca69b7972eb10b347eac5b6a308d67d462.tar.gz plus-a82ac0ca69b7972eb10b347eac5b6a308d67d462.tar.bz2 plus-a82ac0ca69b7972eb10b347eac5b6a308d67d462.tar.xz plus-a82ac0ca69b7972eb10b347eac5b6a308d67d462.zip |
fix typo in pets direction code.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 8 |
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()) |