rust/lib-hedgewars-engine/src/world.rs
changeset 15275 66c987015f2d
parent 15274 42b710b0f883
child 15755 2eb3469a28a0
--- a/rust/lib-hedgewars-engine/src/world.rs	Thu Jul 25 22:31:24 2019 +0300
+++ b/rust/lib-hedgewars-engine/src/world.rs	Thu Jul 25 23:02:02 2019 +0300
@@ -1,5 +1,8 @@
 use fpnum::{fp, FPNum, FPPoint};
-use hwphysics::{self as hwp, common::GearId};
+use hwphysics::{
+    self as hwp,
+    common::{GearId, Millis},
+};
 use integral_geometry::{Point, Rect, Size};
 use land2d::Land2D;
 use landgen::{
@@ -150,7 +153,7 @@
         }
 
         if let Some(ref mut state) = self.game_state {
-            state.physics.step(fp!(1), &state.land);
+            state.physics.step(Millis::new(1), &state.land);
         }
     }
 }