From 59fa52906b1ac1f53e895f28e035d985cbee24a9 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Mon, 24 Jul 2006 14:49:24 +0000 Subject: Fixed setDirection() semantics. Removed a printf-leftover. --- src/localplayer.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/localplayer.cpp') 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); } -- cgit v1.2.3-70-g09d2