summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-15 19:22:48 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-15 19:22:48 +0100
commit2f48ff6c56db96fb2c0a51d9e4a6522e07ab1339 (patch)
treec8b408dedae5504651df4e54a6eccd27ca8491e8 /src/being.cpp
parentd61c66a34b1fbb88267cf2ef9adf8bc03d52cb84 (diff)
downloadmana-2f48ff6c56db96fb2c0a51d9e4a6522e07ab1339.tar.gz
mana-2f48ff6c56db96fb2c0a51d9e4a6522e07ab1339.tar.bz2
mana-2f48ff6c56db96fb2c0a51d9e4a6522e07ab1339.tar.xz
mana-2f48ff6c56db96fb2c0a51d9e4a6522e07ab1339.zip
Fixed a small condition.
Should be invisible on behaviour change.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index fc2f2f2d..8c7f45bb 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -680,7 +680,7 @@ void Being::logic()
mPath.front().y);
// Avoid going to flawed destinations
- if (mDest.x <= 0 && mDest.y <= 0)
+ if (mDest.x <= 0 || mDest.y <= 0)
{
// We make the being stop move in that case.
mDest = mPos;