changeset 15291 | 7446258fab98 |
parent 15287 | b58f98bbc120 |
child 15295 | 42b710b0f883 |
--- a/rust/hwphysics/src/collision.rs Thu Jul 25 18:40:06 2019 +0200 +++ b/rust/hwphysics/src/collision.rs Thu Jul 25 19:58:19 2019 +0300 @@ -11,7 +11,7 @@ use land2d::Land2D; pub fn fppoint_round(point: &FPPoint) -> Point { - Point::new(point.x().round() as i32, point.y().round() as i32) + Point::new(point.x().round(), point.y().round()) } #[derive(PartialEq, Eq, Clone, Copy, Debug)]