From: Ricardo Cruz Date: Sat, 4 Sep 2004 21:16:05 +0000 (+0000) Subject: Added grabbing while ducking. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c060e84aa2188fb573df9115802c1ef98be871fb;p=supertux.git Added grabbing while ducking. SVN-Revision: 1865 --- diff --git a/src/player.cpp b/src/player.cpp index 05643ecfe..a2e168e6f 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -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 */