From: Timo Kokkonen Date: Wed, 13 Jul 2011 16:18:00 +0000 (+0300) Subject: quadtree: Trivial cleanup X-Git-Url: http://git.itanic.dy.fi/?p=sdl-planets;a=commitdiff_plain;h=1fac4daf508b92926d5fd0b4fc9785e70b403279 quadtree: Trivial cleanup Signed-off-by: Timo Kokkonen --- diff --git a/quadtree.c b/quadtree.c index 9338a85..5ea460a 100644 --- a/quadtree.c +++ b/quadtree.c @@ -522,7 +522,7 @@ static int quadtree_split_by_node(struct quadtree *node, return 1; } -/* +/** * Quickly detach a node from a tree. Move all child nodes under * @parent node. */ @@ -543,7 +543,6 @@ static int _quadtree_del(struct quadtree *node, struct quadtree *parent) if (i == 4) trap(); - for (i = 0; i < 4; i++) { if (!node->child[i]) continue; @@ -832,7 +831,7 @@ struct quadtree *quadtree_move(struct quadtree *node, struct vector new_pos, /* Move the node into its new location */ node->pos = new_pos; - if(node->children) { + if (node->children) { /* * Now, search the subtree for any children that are * located in wrong place and move them into correct