From 1735ae9ea3b0d48f39f84fcefad5ec74275d4943 Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Sun, 24 Feb 2008 10:36:32 +0000 Subject: [PATCH] Fixed check for Block killing Badguy from below SVN-Revision: 5336 --- src/object/block.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0