From e1ea18b5a01f1e476b8addf5202d77dc7060c1ee Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 14 Feb 2013 23:35:17 +0100 Subject: fixed Mario falling animation on map. AGAIN. --- src/koopatlas/pathmanager.cpp | 4 ++-- 1 file 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); -- cgit v1.2.3