Fixed github issue #2

This commit is contained in:
Richard Davey 2013-04-18 20:31:09 +01:00
parent b0bf25c818
commit 8da04760ae

View file

@ -409,7 +409,7 @@ module Phaser {
}
// Line vs. Circle
if (this.type == GeomSprite.LINE && source.type == GeomSprite.LINE)
if (this.type == GeomSprite.LINE && source.type == GeomSprite.CIRCLE)
{
return Collision.lineToCircle(this.line, source.circle).result;
}
@ -421,7 +421,7 @@ module Phaser {
}
// Line vs. Point
if (this.type == GeomSprite.LINE && source.type == GeomSprite.LINE)
if (this.type == GeomSprite.LINE && source.type == GeomSprite.POINT)
{
return this.line.isPointOnLine(source.point.x, source.point.y);
}