From 5ec62c0a2a0357a79f92b8bb37f67272e7f910ff Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 22 Jul 2023 00:50:32 +0200 Subject: loading map data from chunks rather than tilelayout --- src/kdtree.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/kdtree.c') diff --git a/src/kdtree.c b/src/kdtree.c index ab5aa98..551bc5c 100644 --- a/src/kdtree.c +++ b/src/kdtree.c @@ -1,5 +1,9 @@ #include "kdtree.h" +void print_node(kdtree_t *tree) { + printf("[%d,%d] %ld\n", tree->x, tree->y, (long)tree->value); +} + kdtree_t * kdtree_create(int x, int y, char * value) { kdtree_t * tree = malloc(sizeof(kdtree_t)); tree->x = x; -- cgit v1.2.1