From 37add119a38e231a2b6aa185a64ab4a2bcbc06b7 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Tue, 5 Nov 2013 18:34:10 +0100 Subject: [PATCH] Don't resurrect zeekling when colliding after squished --- src/badguy/zeekling.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/badguy/zeekling.cpp b/src/badguy/zeekling.cpp index 1c49add59..8fff3eac3 100644 --- a/src/badguy/zeekling.cpp +++ b/src/badguy/zeekling.cpp @@ -109,6 +109,12 @@ Zeekling::onBumpVertical() { void Zeekling::collision_solid(const CollisionHit& hit) { + if(sprite->get_action() == "squished-left" || + sprite->get_action() == "squished-right") + { + return; + } + if(hit.top || hit.bottom) { onBumpVertical(); } else if(hit.left || hit.right) { -- 2.11.0