Skip to content

Commit

Permalink
Merge pull request #38 from igorribeiroduarte/master
Browse files Browse the repository at this point in the history
Disabling collision for inactive objects
  • Loading branch information
edsomjr authored Jun 17, 2016
2 parents 396cf50 + c1ca9b4 commit c406dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ namespace ijengine
case ONE_TO_ALL:
for (auto obj : objects)
{
if (obj == target or not target->active())
if (obj == target or not target->active() or not obj->active())
continue;

auto r = collision(target, obj);
Expand Down

0 comments on commit c406dc9

Please sign in to comment.