Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/object/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2414,7 +2414,10 @@ Player::collision(MovingObject& other, const CollisionHit& hit)
return ABORT_MOVE;

if (hit.bottom && badguy->is_frozen())
{
m_on_ground_flag = true;
m_physic.set_velocity_y(0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the set_velocity_y call supposed to be part of the if statement in line 2416 or not?

If it does, it needs braces after the if. If not, the indentation needs to get fixed or, even better, the call needs to be put in a new line.

}
}

return CONTINUE;
Expand Down
Loading