From 8e2508626776d1300b351f2326773b5bb0cb528f Mon Sep 17 00:00:00 2001 From: Schark Date: Mon, 18 Mar 2024 01:44:32 -0700 Subject: Adding selected square functionality and aesthetics --- height-map-display/src/map/node.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'height-map-display/src/map/node.c') diff --git a/height-map-display/src/map/node.c b/height-map-display/src/map/node.c index eaf2877..33d568d 100644 --- a/height-map-display/src/map/node.c +++ b/height-map-display/src/map/node.c @@ -18,3 +18,11 @@ void change_node_height(Node* node, float diff) { if (node != NULL) { node->elevation = node->elevation + diff; } } +int* get_coords(Node* node) { + int *coordinate = malloc(2 * sizeof(int)); + if (coordinate != NULL) { + coordinate[0] = node->x; + coordinate[1] = node->y; + } + return coordinate; +} -- cgit v1.2.3-18-g5258