Skip to content

Commit d479f68

Browse files
committed
stumpy: bounce when buttjumped while invincible
fixes #3697
1 parent 6c9479d commit d479f68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/badguy/stumpy.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,15 @@ Stumpy::active_update(float dt_sec)
7171
{
7272
switch (mystate) {
7373
case STATE_INVINCIBLE:
74+
set_group(COLGROUP_MOVING_STATIC);
7475
if (invincible_timer.check()) {
7576
mystate = STATE_NORMAL;
7677
WalkingBadguy::initialize();
7778
}
7879
BadGuy::active_update(dt_sec);
7980
break;
8081
case STATE_NORMAL:
82+
set_group(COLGROUP_MOVING);
8183
WalkingBadguy::active_update(dt_sec);
8284
break;
8385
}

0 commit comments

Comments
 (0)