From 1a9a17c629934dc2a72a375c03fa2be100cf4b81 Mon Sep 17 00:00:00 2001 From: Wolfgang Becker Date: Sun, 7 Jan 2007 19:28:14 +0000 Subject: [PATCH] tuxdev fixed the tux floating backwards while jumping bug SVN-Revision: 4532 --- src/object/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object/player.cpp b/src/object/player.cpp index 9eb541cc4..f04beb32a 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -346,7 +346,7 @@ Player::apply_friction() physic.set_acceleration_x(0); } else if(physic.get_velocity_x() < 0) { physic.set_acceleration_x(WALK_ACCELERATION_X * 1.5); - } else { + } else if(physic.get_velocity_x() > 0) { physic.set_acceleration_x(WALK_ACCELERATION_X * -1.5); } } -- 2.11.0