Remove walk key
authorMathnerd314 <man.is.allan@gmail.com>
Thu, 4 Mar 2010 02:37:48 +0000 (02:37 +0000)
committerMathnerd314 <man.is.allan@gmail.com>
Thu, 4 Mar 2010 02:37:48 +0000 (02:37 +0000)
SVN-Revision: 6536

src/object/player.cpp

index 2ffa8ec..bbf2fb8 100644 (file)
@@ -467,9 +467,8 @@ Player::handle_horizontal_input()
     }
   }
 
     }
   }
 
-  // do not run if action key is pressed or we're holding something
-  // so tux can only walk while shooting
-  if ( controller->hold(Controller::ACTION) || grabbed_object ) {
+  // do not run if we're holding something
+  if ( grabbed_object ) {
     ax = dirsign * WALK_ACCELERATION_X;
     // limit speed
     if(vx >= MAX_WALK_XM && dirsign > 0) {
     ax = dirsign * WALK_ACCELERATION_X;
     // limit speed
     if(vx >= MAX_WALK_XM && dirsign > 0) {