Should fix arm crash.
authorRicardo Cruz <rick2@aeiou.pt>
Fri, 13 Aug 2004 22:22:47 +0000 (22:22 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Fri, 13 Aug 2004 22:22:47 +0000 (22:22 +0000)
SVN-Revision: 1769

data/supertux.strf
src/player.cpp

index 802b084..0502e07 100644 (file)
          (y-hotspot 9)
          (images "shared/smalltux-kick-right-0.png")))
 
- (sprite (name "arm-grab-left")
+ (sprite (name "tux-arm")
        (action
+         (name "grab-left")
          (x-hotspot 5)
          (y-hotspot 9)
-         (images "shared/smalltux-grab-left-0.png")))
+         (images "shared/smalltux-grab-left-0.png"))
 
- (sprite (name "smalltux-grab-right")
-       (action
+       (action 
+         (name "grab-right")
          (x-hotspot 5)
          (y-hotspot 9)
          (images "shared/smalltux-grab-right-0.png")))
index f4af22a..574c478 100644 (file)
@@ -787,9 +787,9 @@ Player::draw(DrawingContext& context)
   if ((holding_something && physic.get_velocity_y() == 0) || shooting_timer.check() && !duck)
   {
     if (dir == RIGHT)
-      tux_arm->set_action("walk-right");
+      tux_arm->set_action("grab-right");
     else
-      tux_arm->set_action("walk-left");
+      tux_arm->set_action("grab-left");
     tux_arm->draw(context, pos, LAYER_OBJECTS + 1);
   }