From a82ac0ca69b7972eb10b347eac5b6a308d67d462 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Dec 2013 22:17:22 +0300 Subject: fix typo in pets direction code. --- src/being/being.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/being') 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()) -- cgit v1.2.3-70-g09d2