Decreased QuadTree sensitivity

This commit is contained in:
Obique PSWG
2016-05-30 14:20:47 -05:00
parent 83d4ae2098
commit ffb158db7d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ import java.util.NoSuchElementException;
public class QuadTree<V> {
private static final double DEFAULT_RANGE = 1E-5;
private static final double DEFAULT_RANGE = 1E-3;
private final QuadNode headNode;
private final double minX, minY, maxX, maxY;
+1 -1
View File
@@ -286,7 +286,7 @@ public class ObjectAwareness extends Service {
return;
QuadTree <SWGObject> tree = getTree(l);
synchronized (tree) {
if (!tree.get(l.getX(), l.getZ()).contains(object))
if (!tree.contains(l.getX(), l.getZ(), object))
tree.put(l.getX(), l.getZ(), object);
}
}