rust/landgen/src/outline.rs
changeset 14109 e2b6ff0421ec
parent 14108 8556937ae338
child 14110 7e25f4800af8
--- a/rust/landgen/src/outline.rs	Sat Nov 03 00:02:03 2018 +0100
+++ b/rust/landgen/src/outline.rs	Sat Nov 03 00:07:25 2018 +0100
@@ -111,7 +111,7 @@
         );
         let mid_point = segment.center();
 
-        if (p.integral_norm() < min_distance as u32 * 3) || !map_box.contains_inside(p) {
+        if (p.integral_norm() < min_distance as u32 * 3) || !map_box.contains_inside(mp) {
             return None;
         }