From: Wolfgang Becker Date: Sun, 7 Jan 2007 19:28:14 +0000 (+0000) Subject: tuxdev fixed the tux floating backwards while jumping bug X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1a9a17c629934dc2a72a375c03fa2be100cf4b81;p=supertux.git tuxdev fixed the tux floating backwards while jumping bug SVN-Revision: 4532 --- 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); } }