typofix
authoralfadur
Sat, 03 Nov 2018 02:16:13 +0300
changeset 14126 7e25f4800af8
parent 14125 e2b6ff0421ec
child 14127 5c1ce63114a5
typofix
rust/landgen/src/outline.rs
--- a/rust/landgen/src/outline.rs	Sat Nov 03 00:07:25 2018 +0100
+++ b/rust/landgen/src/outline.rs	Sat Nov 03 02:16:13 2018 +0300
@@ -111,7 +111,7 @@
         );
         let mid_point = segment.center();
 
-        if (p.integral_norm() < min_distance as u32 * 3) || !map_box.contains_inside(mp) {
+        if (p.integral_norm() < min_distance as u32 * 3) || !map_box.contains_inside(mid_point) {
             return None;
         }