diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-16 21:37:31 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-16 21:37:31 +0100 |
commit | 6846acdcf0159423c188b56fc4a5f4c19f123eb7 (patch) | |
tree | 6dcaf3927a6223365d7f052f2415fa9552b18662 /src/being.cpp | |
parent | 786df24ec5d10e4251fa69426c53f9c2e5d545f4 (diff) | |
download | mana-6846acdcf0159423c188b56fc4a5f4c19f123eb7.tar.gz mana-6846acdcf0159423c188b56fc4a5f4c19f123eb7.tar.bz2 mana-6846acdcf0159423c188b56fc4a5f4c19f123eb7.tar.xz mana-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.cpp | 2 |
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; |