Skip to content

Conversation

der-hahn
Copy link
Contributor

Addition to #3232 . Tux' velocity increased while being on a jumping frozen enemy. I fixed it by setting the velocity to zero.


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.

Copy link
Member

@tobbi tobbi left a comment

Choose a reason for hiding this comment

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

See the above comment

@der-hahn
Copy link
Contributor Author

See the above comment

Oh thanks. Didn't notice that.

@der-hahn der-hahn requested a review from tobbi August 19, 2025 16:55
Copy link
Member

@tobbi tobbi left a comment

Choose a reason for hiding this comment

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

I didn't test this in-game. Only code style

@mrkubax10 mrkubax10 added category:code status:needs-review Work needs to be reviewed by other people involves:physics type:bugfix Pull Requests that fix bugs. labels Sep 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:code involves:physics status:needs-review Work needs to be reviewed by other people type:bugfix Pull Requests that fix bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants