Skip to content

Fix #3685: Prevent coin collection through solid weak blocks#3762

Open
baltazarReis wants to merge 1 commit into
SuperTux:masterfrom
baltazarReis:fix-iceblock-coin-bug
Open

Fix #3685: Prevent coin collection through solid weak blocks#3762
baltazarReis wants to merge 1 commit into
SuperTux:masterfrom
baltazarReis:fix-iceblock-coin-bug

Conversation

@baltazarReis
Copy link
Copy Markdown

@baltazarReis baltazarReis commented Mar 26, 2026

This PR fixes a bug where players could collect coins trapped inside a WeakBlock (like ice blocks) before the block was destroyed.

Added is_solid_block() method to WeakBlock to check its current state.

Modified Coin::collision to prevent collection if the coin's center is inside a solid WeakBlock.

Closes #3685

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]: Some coins inside ice blocks can be grabbed without melting

1 participant