Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
ippa committed Jan 3, 2014
1 parent dc845d5 commit f2b96b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jaws-min.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/* Built at 2013-10-06 21:36:05 +0200 */
/* Built at 2014-01-03 11:51:42 +0100 */

8 changes: 4 additions & 4 deletions jaws.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Built at 2013-10-06 21:36:04 +0200 */
/* Built at 2014-01-03 11:51:42 +0100 */
/**
* @namespace JawsJS core functions.
*
Expand Down Expand Up @@ -2918,13 +2918,13 @@ var jaws = (function(jaws) {
* jaws.collide(bullets, enemies, function(bullet, enemy) { ... } )
*/
jaws.collide = function(x, x2, callback) {
if (x.rect && x2.forEach)
if ((x.rect || x.radius) && x2.forEach)
return (jaws.collideOneWithMany(x, x2, callback).length > 0);
if (x.forEach && x2.forEach)
return (jaws.collideManyWithMany(x, x2, callback).length > 0);
if (x.forEach && x2.rect)
if (x.forEach && (x2.rect || x2.radius))
return (jaws.collideOneWithMany(x2, x, callback).length > 0);
if (x.rect && x2.rect) {
if ((x.rect && x2.rect) || (x.radius && x2.radius)) {
var result = jaws.collideOneWithOne(x, x2);
if (callback && result)
callback(x, x2);
Expand Down

0 comments on commit f2b96b4

Please sign in to comment.