From 99c30ab4762b99cc16ffd7e206a46aeb815ed5c7 Mon Sep 17 00:00:00 2001 From: wolfgangb Date: Tue, 24 Aug 2010 17:39:17 +0000 Subject: [PATCH] Set collision group according to block's solidity. (Fix for 684) git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6650 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- src/object/magicblock.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/object/magicblock.cpp b/src/object/magicblock.cpp index 072ddc805..c69066b45 100644 --- a/src/object/magicblock.cpp +++ b/src/object/magicblock.cpp @@ -131,9 +131,11 @@ MagicBlock::update(float elapsed_time) solid_time+=elapsed_time; color.alpha = ALPHA_SOLID; sprite->set_action("solid"); + set_group(COLGROUP_STATIC); } else { color.alpha = ALPHA_NONSOLID; sprite->set_action("normal"); + set_group(COLGROUP_DISABLED); } } -- 2.11.0