Skip to content

Fixes #3208: bounce mriceblock to bonusblock by bumper doesn't go back #3225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ist1106037
Copy link

When a MrIceBlock is kicked into a trampoline, it bounces back facing backwards. The collision_solid() function, when the MrIceBlock's state is KICKED (which is the case), didn't expect to receive a hit from the right while facing left, and vice-versa. I added that condition and made it so it plays the collision sound and goes back, just like normal, but skips the flipping orientation, as it should slide forward and not backwards.
Video demonstration: https://www.youtube.com/watch?v=oAgOuTEf52w

Closes #3208

…t go back

When a MrIceBlock is kicked into a trampoline, it bounces back facing
backwards. The collision_solid() function, when the MrIceBlock's state
is KICKED (which is the case), didn't expect to receive a hit from
the right while facing left, and vice-versa. I added that condition
and made it so it plays the collision sound and goes back, just like
normal, but skips the flipping orientation, as it should slide forward
and not backwards.

Closes SuperTux#3208
@ist1106037
Copy link
Author

@tobbi could you look at this? Thanks

@tobbi
Copy link
Member

tobbi commented Apr 30, 2025

Technically, this is very similar to the if statement before, could you try to unify those two statements into one?

@ist1106037
Copy link
Author

Done. Apologies for the delay, had a few technical issues I could only resolve at home. I believe this is the most concise way I can make it.

@tobbi
Copy link
Member

tobbi commented Apr 30, 2025

Done. Apologies for the delay, had a few technical issues I could only resolve at home. I believe this is the most concise way I can make it.

Looks good from my perspective!

@ist1106037
Copy link
Author

Should we ask for other reviews?

Copy link
Member

@bruhmoent bruhmoent left a comment

Choose a reason for hiding this comment

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

Works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Stunned iceblock pushed toward bonusblock by bumper doesn't bounce off bonusblock it hit
3 participants