summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-02-14 23:35:17 +0100
committerTreeki <treeki@gmail.com>2013-02-14 23:35:17 +0100
commite1ea18b5a01f1e476b8addf5202d77dc7060c1ee (patch)
tree08337e396e648594e4b6adc718b6e41efe88cd05
parent6734c8f294373ba17ed7ab8b3c69bdb8552f41cd (diff)
downloadkamek-e1ea18b5a01f1e476b8addf5202d77dc7060c1ee.tar.gz
kamek-e1ea18b5a01f1e476b8addf5202d77dc7060c1ee.zip
fixed Mario falling animation on map. AGAIN.
-rw-r--r--src/koopatlas/pathmanager.cpp4
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);