Prepared for buildings spawning

This commit is contained in:
Segey Lapin
2021-10-16 04:26:41 +03:00
parent 45a67ac8bd
commit da73a164a0
4 changed files with 84 additions and 2 deletions

View File

@@ -314,7 +314,7 @@ void RoadGrid::build(Ref<Curve> curve, Ref<FastNoiseLite> noise)
if (min_height > y)
min_height = y;
}
map_sites.write[i].avg_height = min_height * 0.4f + max_height * 0.6f;
map_sites.write[i].avg_height = min_height * 0.7f + max_height * 0.3f;
}
generate_building_positions();
printf("building 3rd dimention done\n");