- fixed it so arm is not drawn when Tux is shooting and ducking
authorRyan Flegel <rflegel@gmail.com>
Mon, 24 May 2004 23:03:43 +0000 (23:03 +0000)
committerRyan Flegel <rflegel@gmail.com>
Mon, 24 May 2004 23:03:43 +0000 (23:03 +0000)
SVN-Revision: 1318

src/player.cpp

index 7cae89b..f11b12a 100644 (file)
@@ -626,7 +626,7 @@ Player::draw(Camera& viewport, int layer)
 
   if(layer == LAYER_OBJECTS + 1) {
     // Draw arm overlay graphics when Tux is holding something
-    if ((holding_something && physic.get_velocity_y() == 0) || shooting_timer.check())
+    if ((holding_something && physic.get_velocity_y() == 0) || shooting_timer.check() && !duck)
     {
       if (dir == RIGHT)
         sprite->grab_right->draw(pos);