From 85bc49ce7d23dcba140b269f6a41ba3192ef4f38 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Sun, 31 Oct 2004 12:36:52 +0000 Subject: [PATCH] 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 --- src/player.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); } } -- 2.11.0