From 820d02c7889290bd446fbaeee9b9bdf182223ec1 Mon Sep 17 00:00:00 2001 From: Ryan Flegel Date: Thu, 12 Jun 2008 05:50:20 +0000 Subject: [PATCH] Kicked iceblocks kill badguys that fall on them ("squish" them) SVN-Revision: 5564 --- src/badguy/mriceblock.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/badguy/mriceblock.cpp b/src/badguy/mriceblock.cpp index d224537b4..0b9b9cefb 100644 --- a/src/badguy/mriceblock.cpp +++ b/src/badguy/mriceblock.cpp @@ -183,6 +183,15 @@ MrIceBlock::collision_squished(GameObject& object) { switch(ice_state) { case ICESTATE_KICKED: + { + BadGuy* badguy = dynamic_cast(&object); + if (badguy) { + badguy->kill_fall(); + break; + } + } + + // fall through case ICESTATE_NORMAL: { Player* player = dynamic_cast(&object); -- 2.11.0