Skip to content

Commit

Permalink
fix(rounding of walls added): added rounding of borders
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskw1999 committed Jun 17, 2024
1 parent 04da240 commit d32d791
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/walls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,11 @@ impl Collidable for Walls {
borders.push(self.corners[0].clone());

borders
.iter()
.map(|coord| Coord {
x: coord.x.round(),
y: coord.y.round(),
})
.collect()
}
}

0 comments on commit d32d791

Please sign in to comment.