summaryrefslogtreecommitdiff
path: root/height-map-display/src/map
diff options
context:
space:
mode:
authorSchark <jordan@schark.online>2024-03-17 02:20:30 -0700
committerSchark <jordan@schark.online>2024-03-17 02:20:30 -0700
commit6853e2f83904bafcc4f1131571ba92c7f79f44b3 (patch)
tree1e0074823b3724d46e221f03162616f0fb2664fe /height-map-display/src/map
parente7a4152899e63182a4cc0dffff6cd331d6dac305 (diff)
downloadgamedev-6853e2f83904bafcc4f1131571ba92c7f79f44b3.tar.gz
gamedev-6853e2f83904bafcc4f1131571ba92c7f79f44b3.zip
Map overhaul complete!
Diffstat (limited to 'height-map-display/src/map')
-rw-r--r--height-map-display/src/map/square.c4
1 files changed, 2 insertions, 2 deletions
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;
}
}