Skip to content

Commit 9899336

Browse files
committed
Small refactor to pass jshint.
1 parent ce32d49 commit 9899336

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/geom/Polygon.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ Phaser.Polygon.prototype = {
101101
var jx = this._points[j].x;
102102
var jy = this._points[j].y;
103103

104-
((iy <= y && y < jy) || (jy <= y && y < iy)) && (x < (jx - ix) * (y - iy) / (jy - iy) + ix) && (inside = !inside);
104+
if (((iy <= y && y < jy) || (jy <= y && y < iy)) && (x < (jx - ix) * (y - iy) / (jy - iy) + ix))
105+
{
106+
inside = !inside;
107+
}
105108
}
106109

107110
return inside;

0 commit comments

Comments
 (0)