Allow Tux to unduck in unisolid tiles.
[supertux.git] / src / object / player.cpp
index 41aed42..bec1102 100644 (file)
@@ -197,7 +197,7 @@ Player::get_speedlimit()
 void
 Player::set_speedlimit(float newlimit)
 {
-  speedlimit=newlimit; 
+  speedlimit=newlimit;
 }
 
 void
@@ -216,7 +216,7 @@ Player::adjust_height(float new_height)
   if(new_height > bbox.get_height()) {
     Rect additional_space = bbox2;
     additional_space.set_height(new_height - bbox.get_height());
-    if(!Sector::current()->is_free_of_statics(additional_space, this))
+    if(!Sector::current()->is_free_of_statics(additional_space, this, true))
       return false;
   }
 
@@ -659,7 +659,7 @@ Player::handle_input()
   }
 }
 
-void 
+void
 Player::try_grab()
 {
   if(controller->hold(Controller::ACTION) && !grabbed_object