rust/land2d/src/lib.rs
changeset 15893 5b3beb90e1a6
parent 15828 44b49f255e31
child 15901 f39f0f614dbf
equal deleted inserted replaced
15892:b3295f94e5e9 15893:5b3beb90e1a6
   138         ) {
   138         ) {
   139             let yd = y as isize + dir;
   139             let yd = y as isize + dir;
   140             if mask.contains_y(yd as usize) {
   140             if mask.contains_y(yd as usize) {
   141                 stack.push((xl, xr, yd as usize, dir));
   141                 stack.push((xl, xr, yd as usize, dir));
   142             }
   142             }
   143         };
   143         }
   144 
   144 
   145         let start_x_l = (start_point.x - 1) as usize;
   145         let start_x_l = (start_point.x - 1) as usize;
   146         let start_x_r = start_point.x as usize;
   146         let start_x_r = start_point.x as usize;
   147         for dir in [-1, 1].iter().cloned() {
   147         for dir in [-1, 1].iter().cloned() {
   148             push(
   148             push(