Skip to content

Commit 88bd7c5

Browse files
Fix Zeekling jittering after death
Fixes #3353
1 parent 630a13f commit 88bd7c5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/badguy/zeekling.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,12 @@ Zeekling::on_bump_vertical()
104104
void
105105
Zeekling::collision_solid(const CollisionHit& hit)
106106
{
107-
if (m_frozen)
107+
if (m_frozen || !is_active())
108108
{
109109
BadGuy::collision_solid(hit);
110110
return;
111111
}
112112

113-
if (BadGuy::get_state() == STATE_SQUISHED ||
114-
BadGuy::get_state() == STATE_BURNING)
115-
{
116-
return;
117-
}
118-
119113
if (hit.top || hit.bottom)
120114
on_bump_vertical();
121115
else if (hit.left || hit.right)

0 commit comments

Comments
 (0)