rust/landgen/src/outline_template_based/template_based.rs
branchtransitional_engine
changeset 16064 0caa3dfb3ba2
parent 16058 9cbd18220eb7
child 16073 5c941f5deeec
equal deleted inserted replaced
16063:09beeec033ba 16064:0caa3dfb3ba2
    52                 }
    52                 }
    53             }
    53             }
    54         }
    54         }
    55 
    55 
    56         if !parameters.skip_distort {
    56         if !parameters.skip_distort {
    57             points.distort(parameters.distance_divisor, random_numbers);
    57             let distortion_limiting_factor = 100 + random_numbers.next().unwrap() % 8 * 10;
       
    58 
       
    59             points.distort(parameters.distance_divisor, distortion_limiting_factor, random_numbers);
    58         }
    60         }
    59 
    61 
    60         if !parameters.skip_bezier {
    62         if !parameters.skip_bezier {
    61             points.bezierize(5);
    63             points.bezierize(5);
    62         }
    64         }