From 6853e2f83904bafcc4f1131571ba92c7f79f44b3 Mon Sep 17 00:00:00 2001 From: Schark Date: Sun, 17 Mar 2024 02:20:30 -0700 Subject: Map overhaul complete! --- height-map-display/src/map/square.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'height-map-display/src/map/square.c') diff --git a/height-map-display/src/map/square.c b/height-map-display/src/map/square.c index 707f8b7..1d74ff5 100644 --- a/height-map-display/src/map/square.c +++ b/height-map-display/src/map/square.c @@ -15,7 +15,7 @@ Square* init_square(Node *nodes[4], Terrain_Type terrain) { } void change_square_height(Square* square, float diff) { - for (int i; i < 4; i++) { - square->nodes[i]->elevation = square->nodes[i]->elevation + diff; + for (int i = 0; i < 4; i++) { + square->nodes[i]->elevation = square->nodes[i]->elevation + diff; } } -- cgit v1.2.3-18-g5258