[orx-quadtree] switch to referential equality (#207)
Co-authored-by: Jonathan Ellis <jbellis@gmail.com>
This commit is contained in:
committed by
Edwin Jakobs
parent
bc187820d4
commit
6e00ca2ea1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user