diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-07-24 14:49:24 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-07-24 14:49:24 +0000 |
commit | 59fa52906b1ac1f53e895f28e035d985cbee24a9 (patch) | |
tree | 9d5a1b4703cbb998aaea2ffeef066e05e596a5a4 /src/localplayer.cpp | |
parent | 362a5f5db4a1c4792ddc4feca5e581edff439c34 (diff) | |
download | mana-59fa52906b1ac1f53e895f28e035d985cbee24a9.tar.gz mana-59fa52906b1ac1f53e895f28e035d985cbee24a9.tar.bz2 mana-59fa52906b1ac1f53e895f28e035d985cbee24a9.tar.xz mana-59fa52906b1ac1f53e895f28e035d985cbee24a9.zip |
Fixed setDirection() semantics.
Removed a printf-leftover.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 8b601326..802da92f 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -212,7 +212,6 @@ void LocalPlayer::walk(unsigned char dir) // Warning: Not communicated to the server yet // If the being can't move, just change direction - mDirection = dir; setDirection(dir); } } @@ -347,10 +346,7 @@ void LocalPlayer::attack(Being *target, bool keep) if (abs(dist_y) >= abs(dist_x)) { if (dist_y > 0) - { setDirection(DOWN); - printf("DOWN\n"); - } else setDirection(UP); } |