Skip to content

Commit 9f93d8b

Browse files
committed
Player: Prevent non-egg growup floating
1 parent bce3d08 commit 9f93d8b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/object/player.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,6 +2005,10 @@ Player::set_bonus(BonusType type, bool animate, bool pocket)
20052005
else
20062006
set_action("grow", m_dir , 1);
20072007
}
2008+
else if (type == BONUS_GROWUP) {
2009+
// force-change Tux's sprite immediately when growing up
2010+
m_reset_action = true;
2011+
}
20082012
}
20092013

20102014
if (type == BONUS_NONE) {

0 commit comments

Comments
 (0)