From a2caf9af7a9f22a51aa95d8f1d5c5656bcc1cea0 Mon Sep 17 00:00:00 2001 From: Ryan Flegel Date: Tue, 25 Apr 2006 19:37:15 +0000 Subject: [PATCH] Changed check to determine oif Tux squishes a badguy SVN-Revision: 3434 --- src/badguy/badguy.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.11.0