Added grabbing while ducking.
authorRicardo Cruz <rick2@aeiou.pt>
Sat, 4 Sep 2004 21:16:05 +0000 (21:16 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Sat, 4 Sep 2004 21:16:05 +0000 (21:16 +0000)
SVN-Revision: 1865

src/player.cpp

index 05643ec..a2e168e 100644 (file)
@@ -767,9 +767,12 @@ Player::draw(DrawingContext& context)
 
   // Tux is holding something
   if ((holding_something && physic.get_velocity_y() == 0) ||
-      shooting_timer.check() && !duck)
+      shooting_timer.check())
     {
-    tux_body->arms->set_action("grab");
+    if (duck)
+      tux_body->arms->set_action("duck+grab");
+    else
+      tux_body->arms->set_action("grab");
     }
 
   /* Draw Tux */