summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-16 21:37:31 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-16 21:37:31 +0100
commit6846acdcf0159423c188b56fc4a5f4c19f123eb7 (patch)
tree6dcaf3927a6223365d7f052f2415fa9552b18662 /src/being.cpp
parent786df24ec5d10e4251fa69426c53f9c2e5d545f4 (diff)
downloadmana-client-6846acdcf0159423c188b56fc4a5f4c19f123eb7.tar.gz
mana-client-6846acdcf0159423c188b56fc4a5f4c19f123eb7.tar.bz2
mana-client-6846acdcf0159423c188b56fc4a5f4c19f123eb7.tar.xz
mana-client-6846acdcf0159423c188b56fc4a5f4c19f123eb7.zip
Fixed the bug with remote player movement animation,
by removing a now useless reset in the beinghandler. Also added checks for flawed directions.
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 465cb088..2c8414d8 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -635,7 +635,7 @@ void Being::setAction(Action action, int attackType)
void Being::setDirection(Uint8 direction)
{
- if (mDirection == direction)
+ if (!direction || mDirection == direction)
return;
mDirection = direction;