Navigation Menu

Skip to content

Commit

Permalink
Set collision group according to block's solidity. (Fix for 684)
Browse files Browse the repository at this point in the history
SVN-Revision: 6650
  • Loading branch information
uafr committed Aug 24, 2010
1 parent 695fa59 commit fef1511
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/object/magicblock.cpp
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit fef1511

Please sign in to comment.