summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
Diffstat (limited to 'src/being')
-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())