about summary refs log tree commit diff
path: root/quadtree.go
diff options
context:
space:
mode:
authorhanemile <hanemile@protonmail.com>2019-01-23 16:47:35 +0100
committerhanemile <hanemile@protonmail.com>2019-01-23 16:47:35 +0100
commit62b1d17aa66f7d94685cbf51b21e787064be2d2b (patch)
tree461d95448a628e8e789cf1c0b56ad58022a8f8ee /quadtree.go
parentbe1b1d3d486499e4a7488747fdc1fbd31f7a5a36 (diff)
updated the recursion limit
Diffstat (limited to 'quadtree.go')
-rw-r--r--quadtree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/quadtree.go b/quadtree.go
index ebab528..a954601 100644
--- a/quadtree.go
+++ b/quadtree.go
@@ -62,7 +62,7 @@ func (n *Node) Subdivide() {
 // Insert inserts the given star into the Node or the tree it is called on
 func (n *Node) Insert(star Star2D) error {
 
-	if n.Boundry.Width < 1e-20 {
+	if n.Boundry.Width < 1e-60 {
 		return fmt.Errorf("%s", "Max Recursion depth reached!")
 	}