Skip to content

Commit

Permalink
Merge pull request phaserjs#437 from bunnyhero/intersects-return
Browse files Browse the repository at this point in the history
Return a value from Phaser.Physics.Arcade.intersects().
  • Loading branch information
photonstorm committed Feb 20, 2014
2 parents 92edaf7 + c57071b commit f9a63a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/physics/arcade/ArcadePhysics.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ Phaser.Physics.Arcade.prototype = {

if (a.width <= 0 || a.height <= 0 || b.width <= 0 || b.height <= 0)
{
result = false;
return false;
}

result = !(a.right < b.left || a.bottom < b.top || a.left > b.right || a.top > b.bottom);
Expand All @@ -827,6 +827,7 @@ Phaser.Physics.Arcade.prototype = {
a.removeContact(b);
}

return result;
},

/**
Expand Down

0 comments on commit f9a63a9

Please sign in to comment.