Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6146/src
Modified Files:
player.cpp
Log Message:
Tweaked the buttstomp range - now it kills only enemies that are close to Tux on the same height level.
Index: player.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/player.cpp,v
retrieving revision 1.137
retrieving revision 1.138
diff -u -d -r1.137 -r1.138
--- player.cpp 7 Jun 2004 15:13:52 -0000 1.137
+++ player.cpp 7 Jun 2004 15:32:58 -0000 1.138
@@ -528,8 +528,9 @@
BadGuy* badguy = dynamic_cast<BadGuy*> (*i);
if(badguy)
{
- if (fabsf(base.x - badguy->base.x) < 300 &&
- fabsf(base.y - badguy->base.y) < 300 &&
+
+ if (fabsf(base.x - badguy->base.x) < 150 &&
+ fabsf(base.y - badguy->base.y) < 60 &&
(issolid(badguy->base.x + 1, badguy->base.y + badguy->base.height) ||
issolid(badguy->base.x + badguy->base.width - 1, badguy->base.y + badguy->base.height)))
badguy->kill_me(25);
|