rust/landgen/src/outline_template_based/template_based.rs
branchtransitional_engine
changeset 16035 0caa3dfb3ba2
parent 16029 9cbd18220eb7
--- a/rust/landgen/src/outline_template_based/template_based.rs	Mon Sep 16 16:57:11 2024 +0200
+++ b/rust/landgen/src/outline_template_based/template_based.rs	Wed Sep 18 13:42:26 2024 +0200
@@ -54,7 +54,9 @@
         }
 
         if !parameters.skip_distort {
-            points.distort(parameters.distance_divisor, random_numbers);
+            let distortion_limiting_factor = 100 + random_numbers.next().unwrap() % 8 * 10;
+
+            points.distort(parameters.distance_divisor, distortion_limiting_factor, random_numbers);
         }
 
         if !parameters.skip_bezier {