diff options
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index a6e558e8..f17fbca4 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -303,7 +303,6 @@ void LocalPlayer::nextStep(unsigned char dir = 0) const Vector &pos = getPosition(); // Compute where the next step will be set. - int dx = 0, dy = 0; if (dir & UP) dy--; @@ -342,7 +341,7 @@ void LocalPlayer::nextStep(unsigned char dir = 0) } } - if (dScaler > 0) + if (dScaler > 16) { //effectManager->trigger(15, (int) pos.x + (dx * dScaler), (int) pos.y + (dy * dScaler)); setDestination((int) pos.x + (dx * dScaler), (int) pos.y + (dy * dScaler)); @@ -526,13 +525,12 @@ void LocalPlayer::setDestination(Uint16 x, Uint16 y) mDestX = x; mDestY = y; + Being::setDestination(x, y); Net::getPlayerHandler()->setDestination(x, y, mDirection); } mPickUpTarget = NULL; mKeepAttacking = false; - - Being::setDestination(x, y); } void LocalPlayer::setWalkingDir(int dir) |