mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Deref instead of clone vel
This commit is contained in:
parent
b4c74279b7
commit
05dff792fc
@ -99,7 +99,7 @@ impl<'a> System<'a> for Sys {
|
||||
.flatten()
|
||||
.flatten();
|
||||
|
||||
let old_vel = vel.clone();
|
||||
let old_vel = *vel;
|
||||
// Integrate forces
|
||||
// Friction is assumed to be a constant dependent on location
|
||||
let friction = if physics_state.on_ground {
|
||||
|
Loading…
Reference in New Issue
Block a user