Remove walk key
authormathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Thu, 4 Mar 2010 02:37:48 +0000 (02:37 +0000)
committermathnerd314 <mathnerd314@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Thu, 4 Mar 2010 02:37:48 +0000 (02:37 +0000)
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6536 837edb03-e0f3-0310-88ca-d4d4e8b29345

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) {