diff options
| author | Treeki <treeki@gmail.com> | 2013-02-14 23:35:17 +0100 | 
|---|---|---|
| committer | Treeki <treeki@gmail.com> | 2013-02-14 23:35:17 +0100 | 
| commit | e1ea18b5a01f1e476b8addf5202d77dc7060c1ee (patch) | |
| tree | 08337e396e648594e4b6adc718b6e41efe88cd05 | |
| parent | 6734c8f294373ba17ed7ab8b3c69bdb8552f41cd (diff) | |
| download | kamek-e1ea18b5a01f1e476b8addf5202d77dc7060c1ee.tar.gz kamek-e1ea18b5a01f1e476b8addf5202d77dc7060c1ee.zip | |
fixed Mario falling animation on map. AGAIN.
| -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); | 
