From: Ricardo Cruz Date: Sun, 31 Oct 2004 12:36:52 +0000 (+0000) Subject: Tuned buttjump range values as asked by Iknos. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=85bc49ce7d23dcba140b269f6a41ba3192ef4f38;p=supertux.git Tuned buttjump range values as asked by Iknos. Also let buttjump kill enemies on air. This ain't that easy, so I guess this is okay. SVN-Revision: 2079 --- diff --git a/src/player.cpp b/src/player.cpp index 0ddfdb19a..9bfde51e4 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -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); } }