Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6125/src
Modified Files:
player.cpp
Log Message:
Ryan was right, Tux was firing from the head :D
Index: player.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/player.cpp,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -d -r1.108 -r1.109
--- player.cpp 18 May 2004 18:04:53 -0000 1.108
+++ player.cpp 18 May 2004 23:15:31 -0000 1.109
@@ -461,7 +461,8 @@
/* Shoot! */
if (input.fire == DOWN && input.old_fire == UP && got_power != NONE_POWER)
{
- World::current()->add_bullet(base.x, base.y, physic.get_velocity_x(), dir);
+ holding_something = true;
+ World::current()->add_bullet(base.x, base.y + (base.height/2), physic.get_velocity_x(), dir);
input.old_fire = DOWN;
}
|