Tuned buttjump range values as asked by Iknos.
authorRicardo Cruz <rick2@aeiou.pt>
Sun, 31 Oct 2004 12:36:52 +0000 (12:36 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Sun, 31 Oct 2004 12:36:52 +0000 (12:36 +0000)
Also let buttjump kill enemies on air. This ain't that easy, so I guess this is okay.

SVN-Revision: 2079

src/player.cpp

index 0ddfdb1..9bfde51 100644 (file)
@@ -737,10 +737,8 @@ Player::handle_vertical_input()
         if(badguy->dying == DYING_NOT && badguy->mode != BadGuy::BOMB_TICKING &&
            badguy->mode != BadGuy::BOMB_EXPLODE)
           {
-            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)))
+            if (fabsf(base.x - badguy->base.x) < 96 &&
+                fabsf(base.y - badguy->base.y) < 64)
               badguy->kill_me(25);
           }
       }