From: Marek Moeckel Date: Mon, 7 Jun 2004 15:32:58 +0000 (+0000) Subject: Tweaked the buttstomp range - now it kills only enemies that are close to Tux on... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=860ae6a53405e0bf0fe889f439ca225e22fc04e6;p=supertux.git Tweaked the buttstomp range - now it kills only enemies that are close to Tux on the same height level. SVN-Revision: 1419 --- diff --git a/src/player.cpp b/src/player.cpp index d5f612149..9366cd511 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -528,8 +528,9 @@ Player::handle_vertical_input() BadGuy* badguy = dynamic_cast (*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);