summaryrefslogtreecommitdiff
path: root/src/ix2.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-10-31 00:55:28 -0700
committerVito Caputo <vcaputo@pengaru.com>2018-10-31 00:55:28 -0700
commitb9f85a38b51eaa8b0590deedfc2cc9c247e920db (patch)
treee9e7d7a7c62b3c8f8791da3a8519ca5648d20265 /src/ix2.c
parentff7f7fa2b0f0db3dc2adeb65929510126c371b26 (diff)
libix2: trivial whitespace fixes
Diffstat (limited to 'src/ix2.c')
-rw-r--r--src/ix2.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ix2.c b/src/ix2.c
index e955283..d7c86b4 100644
--- a/src/ix2.c
+++ b/src/ix2.c
@@ -377,12 +377,10 @@ static ix2_object_t * add_object(ix2_t *ix2, unsigned *depth, ix2_node_t *node,
return object;
}
-
/* Node is a leaf, optimistically link the object to the node */
if (!link_object(object, node, reference_cache))
goto _fail;
-
/* If the node is overflowing, split it */
if (node->n_objects > ix2->max_per_node && *depth < ix2->max_depth) {
*depth++;
@@ -581,7 +579,6 @@ unsigned ix2_search_by_point(ix2_t *ix2, v2f_t *point, ix2_search_cb cb, void *c
n_hits++;
}
-
return n_hits;
}
@@ -611,12 +608,11 @@ static void search_node_by_aabb(ix2_node_t *node, bb2f_t *node_aabb, v2f_t *sear
return;
}
-
list_for_each_entry_safe(ref, _ref, &node->objects, objects) {
if (!aabb_overlap(&ref->object->position, &ref->object->origin, &ref->object->aabb, search_position, search_origin, search_aabb))
continue;
- list_move_tail(&ref->object->hits, hits);
+ list_move_tail(&ref->object->hits, hits);
}
}
© All Rights Reserved