tuxdev fixed the tux floating backwards while jumping bug
authorWolfgang Becker <uafr@gmx.de>
Sun, 7 Jan 2007 19:28:14 +0000 (19:28 +0000)
committerWolfgang Becker <uafr@gmx.de>
Sun, 7 Jan 2007 19:28:14 +0000 (19:28 +0000)
SVN-Revision: 4532

src/object/player.cpp

index 9eb541c..f04beb3 100644 (file)
@@ -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);
   }
 }