# HG changeset patch # User nemo # Date 1605116729 18000 # Node ID 2eb3469a28a0179a105ce88345823c1c22622a11 # Parent aa011799cb637ee735c4097296720d558a8f7212 trying to build diff -r aa011799cb63 -r 2eb3469a28a0 rust/landgen/src/outline.rs --- a/rust/landgen/src/outline.rs Thu Oct 22 13:27:49 2020 +0200 +++ b/rust/landgen/src/outline.rs Wed Nov 11 12:45:29 2020 -0500 @@ -308,7 +308,7 @@ } } -#[test()] +#[test] fn points_test() { let size = Size::square(100); let mut points = OutlinePoints { diff -r aa011799cb63 -r 2eb3469a28a0 rust/lib-hedgewars-engine/src/world.rs --- a/rust/lib-hedgewars-engine/src/world.rs Thu Oct 22 13:27:49 2020 +0200 +++ b/rust/lib-hedgewars-engine/src/world.rs Wed Nov 11 12:45:29 2020 -0500 @@ -2,6 +2,7 @@ use hwphysics::{ self as hwp, common::{GearId, Millis}, + physics::{PositionData, VelocityData}, }; use integral_geometry::{Point, Rect, Size}; use land2d::Land2D; @@ -135,7 +136,11 @@ let fp_position = FPPoint::new(position.x.into(), position.y.into()); state.physics.add_gear_data( id, - hwp::physics::PhysicsData::new(fp_position, FPPoint::zero()), + &PositionData(fp_position) + ); + state.physics.add_gear_data( + id, + &VelocityData(FPPoint::zero()) ) } }