diff options
Diffstat (limited to 'src/koopatlas/pathmanager.cpp')
-rw-r--r-- | src/koopatlas/pathmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/koopatlas/pathmanager.cpp b/src/koopatlas/pathmanager.cpp index 7f7239b..47e1d16 100644 --- a/src/koopatlas/pathmanager.cpp +++ b/src/koopatlas/pathmanager.cpp @@ -713,7 +713,7 @@ void dWMPathManager_c::moveThroughPath(int pressedDir) { if (to->x > from->x) // Moving right isFalling = (player->pos.x > (to->x - (move.x * 10.0f))); else // Moving left - isFalling = (player->pos.x < (to->x + (move.x * 10.0f))); + isFalling = (player->pos.x < (to->x - (move.x * 10.0f))); } else { float ys = (float)from->y; @@ -737,7 +737,7 @@ void dWMPathManager_c::moveThroughPath(int pressedDir) { if (ye > ys) // Moving down isFalling = (-player->pos.y) > (ye - (move.y * 10.0f)); else // Moving up - isFalling = (-player->pos.y) < (ye + (move.y * 10.0f)); + isFalling = (-player->pos.y) < (ye - (move.y * 10.0f)); } if (isFalling) player->startAnimation(jumped, 1.0f, 10.0f, 0.0f); |