From: Ryan Flegel Date: Tue, 25 Apr 2006 19:37:15 +0000 (+0000) Subject: Changed check to determine oif Tux squishes a badguy X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a2caf9af7a9f22a51aa95d8f1d5c5656bcc1cea0;p=supertux.git Changed check to determine oif Tux squishes a badguy SVN-Revision: 3434 --- diff --git a/src/badguy/badguy.cpp b/src/badguy/badguy.cpp index ee2e347e4..3b35c5cfa 100644 --- a/src/badguy/badguy.cpp +++ b/src/badguy/badguy.cpp @@ -181,9 +181,7 @@ BadGuy::collision_player(Player& player, const CollisionHit& ) */ // hit from above? - if(player.get_movement().y /*- get_movement().y*/ > 0 - && player.get_bbox().p2.y < - (get_bbox().p1.y + get_bbox().p2.y) / 2) { + if(player.get_bbox().p2.y < (bbox.p1.y + 16)) { // if it's not possible to squish us, then this will hurt if(collision_squished(player)) return ABORT_MOVE;