From: Christoph Sommer Date: Sun, 24 Feb 2008 10:36:32 +0000 (+0000) Subject: Fixed check for Block killing Badguy from below X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1735ae9ea3b0d48f39f84fcefad5ec74275d4943;p=supertux.git Fixed check for Block killing Badguy from below SVN-Revision: 5336 --- diff --git a/src/object/block.cpp b/src/object/block.cpp index e5995b7a4..61bf7c358 100644 --- a/src/object/block.cpp +++ b/src/object/block.cpp @@ -83,7 +83,7 @@ Block::collision(GameObject& other, const CollisionHit& ) Portable* portable = dynamic_cast (&other); MovingObject* moving_object = dynamic_cast (&other); bool is_portable = ((portable != 0) && portable->is_portable()); - bool hit_mo_from_below = ((moving_object == 0) || (moving_object->get_bbox().get_bottom() > (get_bbox().get_top() - 7.0))); + bool hit_mo_from_below = ((moving_object == 0) || (moving_object->get_bbox().get_bottom() < (get_bbox().get_top() + 7.0))); if(bouncing && !is_portable && hit_mo_from_below) { // Badguys get killed