Skip to content

Commit

Permalink
Fix pushbutton under water causing Tux to move to standing action
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Dec 27, 2024
1 parent cff5719 commit afb249b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/object/pushbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ PushButton::collision(MovingObject& other, const CollisionHit& hit)
if (hit.top)
{
player->get_physic().set_velocity_y(0);
player->set_on_ground(true);
if(!player->is_swimming())
{
player->set_on_ground(true);
}
}
}
}
Expand Down

0 comments on commit afb249b

Please sign in to comment.