}
//itr.limit.x = cam->zoom
- itr.qt_iterator.head = planet_root;
+ itr.qt_iterator.head = &planet_root->tree;
visible_planets = walk_quadtree(&itr.qt_iterator);
{
int direction, count = 0;
- direction = it->direction(head, it);
+ direction = it->direction(head, (struct quadtree_iterator *)it);
if ((direction & QUADTREE_UPLEFT) && head->child[0])
count += _walk_tree(head->child[0], it);
count += _walk_tree(head->child[3], it);
if ((direction & QUADTREE_SELF) && it->callback) {
- it->callback(head, it->ptr);
+ it->callback(head, (struct quadtree_iterator *)it);
count++;
}