Skip to content

Commit 8da0476

Browse files
committed
Fixed github issue phaserjs#2
1 parent b0bf25c commit 8da0476

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Phaser/gameobjects/GeomSprite.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ module Phaser {
409409
}
410410

411411
// Line vs. Circle
412-
if (this.type == GeomSprite.LINE && source.type == GeomSprite.LINE)
412+
if (this.type == GeomSprite.LINE && source.type == GeomSprite.CIRCLE)
413413
{
414414
return Collision.lineToCircle(this.line, source.circle).result;
415415
}
@@ -421,7 +421,7 @@ module Phaser {
421421
}
422422

423423
// Line vs. Point
424-
if (this.type == GeomSprite.LINE && source.type == GeomSprite.LINE)
424+
if (this.type == GeomSprite.LINE && source.type == GeomSprite.POINT)
425425
{
426426
return this.line.isPointOnLine(source.point.x, source.point.y);
427427
}

0 commit comments

Comments
 (0)