From f905262648068a5e2eb373a5aa7eaa95f6352e3d Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Thu, 9 Sep 2004 10:40:05 +0000 Subject: [PATCH] Made a few mistakes with actions names. SVN-Revision: 1884 --- src/player.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/player.cpp b/src/player.cpp index 86bb7d2e0..713f6c9e9 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -747,7 +747,7 @@ Player::draw(DrawingContext& context) Vector pos = Vector(base.x, base.y); /* Set Tux sprite action */ - if (duck && size != SMALL) + if (duck && size == BIG) { if(dir == LEFT) tux_body->set_action("duck-left"); @@ -807,7 +807,7 @@ Player::draw(DrawingContext& context) if(dir == LEFT) tux_body->head->set_action("idle-left"); else // dir == RIGHT - tux_body->set_action("idle-right"); + tux_body->head->set_action("idle-right"); tux_body->head->start_animation(1); } @@ -822,16 +822,16 @@ Player::draw(DrawingContext& context) if (duck) { if(dir == LEFT) - tux_body->arms->set_action("duck+grab"); + tux_body->arms->set_action("duck+grab-left"); else // dir == RIGHT - tux_body->set_action("duck-right"); + tux_body->arms->set_action("duck+grab-right"); } else { if(dir == LEFT) - tux_body->arms->set_action("grab"); + tux_body->arms->set_action("grab-left"); else // dir == RIGHT - tux_body->set_action("duck-right"); + tux_body->arms->set_action("grab-right"); } } -- 2.11.0