Skip to content

Commit

Permalink
Modified conditions in which Tux can release objects.
Browse files Browse the repository at this point in the history
Allow Tux to ungrab in close proximity to other objects and while under/in front of unisolid tiles.  This resolves bug 847.
  • Loading branch information
LMH0013 committed Jul 16, 2013
1 parent 2ace662 commit 76fba8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object/player.cpp
Expand Up @@ -816,7 +816,7 @@ Player::handle_input()
dest.p1.x = bbox.get_right() + 1;
dest.p2.x = dest.p1.x + grabbed_bbox.get_width();
}
if(Sector::current()->is_free_of_movingstatics(dest)) {
if(Sector::current()->is_free_of_tiles(dest, true)) {
moving_object->set_pos(dest.p1);
if(controller->hold(Controller::UP)) {
grabbed_object->ungrab(*this, UP);
Expand Down

0 comments on commit 76fba8f

Please sign in to comment.