Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15083/src
Modified Files:
player.cpp
Log Message:
Made a few mistakes with actions names.
Index: player.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/player.cpp,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -d -r1.161 -r1.162
--- player.cpp 9 Sep 2004 10:00:00 -0000 1.161
+++ player.cpp 9 Sep 2004 10:40:05 -0000 1.162
@@ -747,7 +747,7 @@
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 @@
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 @@
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");
}
}
|