Changed check to determine oif Tux squishes a badguy
authorRyan Flegel <rflegel@gmail.com>
Tue, 25 Apr 2006 19:37:15 +0000 (19:37 +0000)
committerRyan Flegel <rflegel@gmail.com>
Tue, 25 Apr 2006 19:37:15 +0000 (19:37 +0000)
SVN-Revision: 3434

src/badguy/badguy.cpp

index ee2e347..3b35c5c 100644 (file)
@@ -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;