From: Wolfgang Becker Date: Tue, 24 Aug 2010 17:39:17 +0000 (+0000) Subject: Set collision group according to block's solidity. (Fix for 684) X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fef1511d2b52d7230e8fb83707ef7349968ed1b7;p=supertux.git Set collision group according to block's solidity. (Fix for 684) SVN-Revision: 6650 --- 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); } }