… | |
… | |
540 | enum attr_type* attr_type_list = NULL; |
540 | enum attr_type* attr_type_list = NULL; |
541 | struct quadtree_node* tree_root = quadtree_node_new(NULL,-90,90,-90,90); |
541 | struct quadtree_node* tree_root = quadtree_node_new(NULL,-90,90,-90,90); |
542 | m = g_new0(struct map_priv, 1); |
542 | m = g_new0(struct map_priv, 1); |
543 | m->id = ++map_id; |
543 | m->id = ++map_id; |
544 | m->qitem_hash = g_hash_table_new(g_int_hash, g_int_equal); |
544 | m->qitem_hash = g_hash_table_new(g_int_hash, g_int_equal); |
545 | m->item_hash = g_hash_table_new_full(g_int_hash, g_int_equal,g_free,g_free); |
545 | m->item_hash = g_hash_table_new_full(g_int_hash, g_int_equal,g_free_func,g_free_func); |
546 | |
546 | |
547 | item_type = attr_search(attrs, NULL, attr_item_type); |
547 | item_type = attr_search(attrs, NULL, attr_item_type); |
548 | attr_types = attr_search(attrs, NULL, attr_attr_types); |
548 | attr_types = attr_search(attrs, NULL, attr_attr_types); |
549 | if(attr_types) { |
549 | if(attr_types) { |
550 | enum attr_type* at = attr_types->u.attr_types; |
550 | enum attr_type* at = attr_types->u.attr_types; |