[orx-quadtree] switch to referential equality (#207)

Co-authored-by: Jonathan Ellis <jbellis@gmail.com>
This commit is contained in:
Jonathan Ellis
2021-11-03 06:07:49 -07:00
committed by Edwin Jakobs
parent bc187820d4
commit 6e00ca2ea1

View File

@@ -65,7 +65,7 @@ class Quadtree<T>(val bounds: Rectangle, val maxObjects: Int = 10, val mapper: (
for (interNode in intersected) {
for (obj in interNode.objects) {
if (element == obj) continue
if (element === obj) continue
val p = mapper(obj)
val dist = p.squaredDistanceTo(point)