We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce32d49 commit 9899336Copy full SHA for 9899336
1 file changed
src/geom/Polygon.js
@@ -101,7 +101,10 @@ Phaser.Polygon.prototype = {
101
var jx = this._points[j].x;
102
var jy = this._points[j].y;
103
104
- ((iy <= y && y < jy) || (jy <= y && y < iy)) && (x < (jx - ix) * (y - iy) / (jy - iy) + ix) && (inside = !inside);
+ if (((iy <= y && y < jy) || (jy <= y && y < iy)) && (x < (jx - ix) * (y - iy) / (jy - iy) + ix))
105
+ {
106
+ inside = !inside;
107
+ }
108
}
109
110
return inside;
0 commit comments