Browse Source

cleaned up

master
Thomas Johnson 2 years ago
parent
commit
ee72479638
  1. 8
      src/world/gen.rs

8
src/world/gen.rs

@ -41,13 +41,7 @@ pub mod extra_utils
pub fn rects_have_intersection_or_common_edge(r1: R2i, r2: R2i) -> bool
{
let enlarged = r1.grow(1);
if let Some(_) = enlarged.intersect(r2)
{
true
} else
{
false
}
enlarged.intersect(r2).is_some()
}
pub fn get_rect_edge_by_index(r: R2i, i: isize) -> V2i

Loading…
Cancel
Save