rust/landgen/src/outline_template_based/outline.rs
branchtransitional_engine
changeset 16064 0caa3dfb3ba2
parent 16061 31cc1e450273
--- a/rust/landgen/src/outline_template_based/outline.rs	Mon Sep 16 16:57:11 2024 +0200
+++ b/rust/landgen/src/outline_template_based/outline.rs	Wed Sep 18 13:42:26 2024 +0200
@@ -278,10 +278,9 @@
     pub fn distort<I: Iterator<Item = u32>>(
         &mut self,
         distance_divisor: u32,
+        distortion_limiting_factor: u32,
         random_numbers: &mut I,
     ) {
-        let distortion_limiting_factor = 100 + random_numbers.next().unwrap() as u32 % 8 * 10;
-
         loop {
             let old_len = self.total_len();
             self.divide_edges(distance_divisor, distortion_limiting_factor, random_numbers);