X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fobject%2Fplayer.cpp;h=9eb541cc4799322658877a76b63da4a61ffc01d8;hb=4358672ea215fe309736a23e2cc2ebcf28254619;hp=004a838b25a1bee701b5328dfc17498504c0d53f;hpb=172d70f71c57caaf83cc6a2a67b0afc7eb0b2c31;p=supertux.git diff --git a/src/object/player.cpp b/src/object/player.cpp index 004a838b2..9eb541cc4 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -616,7 +616,7 @@ Player::handle_input() Vector(dir == LEFT ? -bbox.get_width()-1 : bbox.get_width()+1, bbox.get_height()*0.66666 - 32); Rect dest(pos, pos + Vector(32, 32)); - if(Sector::current()->is_free_of_statics(dest)) { + if(Sector::current()->is_free_of_movingstatics(dest)) { MovingObject* moving_object = dynamic_cast (grabbed_object); if(moving_object) { moving_object->set_pos(pos);