summaryrefslogtreecommitdiff
path: root/src/kdtree.c
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-07-22 00:50:32 +0200
committerdavidovski <david@davidovski.xyz>2023-07-22 00:50:32 +0200
commit5ec62c0a2a0357a79f92b8bb37f67272e7f910ff (patch)
tree26e45f549e27999f9bc2d6f5d62461894223230d /src/kdtree.c
parent2dcefdb4565f96b808ed01ce1d96a802b8f73931 (diff)
loading map data from chunks rather than tilelayout
Diffstat (limited to 'src/kdtree.c')
-rw-r--r--src/kdtree.c4
1 files changed, 4 insertions, 0 deletions
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;