Set collision group according to block's solidity. (Fix for 684)
authorWolfgang Becker <uafr@gmx.de>
Tue, 24 Aug 2010 17:39:17 +0000 (17:39 +0000)
committerWolfgang Becker <uafr@gmx.de>
Tue, 24 Aug 2010 17:39:17 +0000 (17:39 +0000)
SVN-Revision: 6650

src/object/magicblock.cpp

index 072ddc8..c69066b 100644 (file)
@@ -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);
   }
 }