Skip to content
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

Avoid grabbing an already grabbed portable #3157

Conversation

Brockengespenst
Copy link
Contributor

@Brockengespenst Brockengespenst commented Dec 25, 2024

Avoid that a player can "grab" an already grabbed portable from another player.

Avoid that another player can "grab" an already grabbed portable from
another player.
@Brockengespenst
Copy link
Contributor Author

Brockengespenst commented Dec 25, 2024

Happens only in multiplayer when another player presses the action button next to a player that has grabbed a portable object. Actually the portable remains visible at the position of the first player that grabbed the portable, but when the other player ungrabs the object, the portable "flies" back to the first player.
A simple check if the portable is already grabbed solves this problem.

@MatusGuy MatusGuy merged commit dd58c5d into SuperTux:master Feb 2, 2025
33 checks passed
@Brockengespenst Brockengespenst deleted the avoid_grabbing_already_grabbed_portable branch February 2, 2025 16:56
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.

3 participants