summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 78988aa1..42da1bf9 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -302,7 +302,7 @@ void LocalPlayer::nextStep(unsigned char dir = 0)
const Vector &pos = getPosition();
- // Compute where the next step will set.
+ // Compute where the next step will be set.
int dx = 0, dy = 0;
if (dir & UP)
@@ -342,7 +342,7 @@ void LocalPlayer::nextStep(unsigned char dir = 0)
}
}
- if (dScaler >= 0)
+ if (dScaler > 0)
{
//effectManager->trigger(15, (int) pos.x + (dx * dScaler), (int) pos.y + (dy * dScaler));
setDestination((int) pos.x + (dx * dScaler), (int) pos.y + (dy * dScaler));