Skip to content

Commit 7f7baa5

Browse files
Stop rolling when stone Tux gets killed (#3319)
This avoids Tux having a different gravity when getting killed (e.g. by falling into the void while rolling) than under normal conditions. Fixes #3307
1 parent effeb4a commit 7f7baa5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/object/player.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2496,6 +2496,8 @@ Player::kill(bool completely)
24962496

24972497
SoundManager::current()->play("sounds/kill.wav", get_pos());
24982498

2499+
if (m_stone) stop_rolling(false);
2500+
24992501
m_physic.enable_gravity(true);
25002502
m_physic.set_gravity_modifier(1.0f); // Undo jump_early_apex
25012503
m_post_damage_safety_timer.stop();

0 commit comments

Comments
 (0)