diff options
Diffstat (limited to 'height-map-display/src/map/node.c')
-rw-r--r-- | height-map-display/src/map/node.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; +} |