Skip to content

Commit 7a64f53

Browse files
committed
Fixed Polygon.contains for coordinates to the left of the polygon (thanks @vilcans, fix phaserjs#766)
1 parent 2cba2a0 commit 7a64f53

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Version 2.0.4 - "Mos Shirare" - in development
124124
* Game checks if window.console exists before using it (should fix IE9 issues when dev tools are closed), however it is still used deeper in Pixi.
125125
* Masks now work when used in RenderTextures / CacheAsBitmap and Filters (pixi.js update)
126126
* Fixed bug where stroked text sometimes got clipped (pixi.js update)
127+
* Fixed Polygon.contains for coordinates to the left of the polygon (thanks @vilcans, fix #766)
127128

128129

129130
### ToDo

src/geom/Polygon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Phaser.Polygon.prototype = {
9494

9595
if (intersect)
9696
{
97-
inside = true;
97+
inside = !inside;
9898
}
9999
}
100100

0 commit comments

Comments
 (0)