From 42ed5c43f52d9ad50b09fbbe4ccb590bc1805a45 Mon Sep 17 00:00:00 2001 From: socksonme Date: Fri, 29 Oct 2021 15:01:21 +0300 Subject: [PATCH] fixed code quality --- common/systems/src/phys.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/common/systems/src/phys.rs b/common/systems/src/phys.rs index a752c52e65..de6b66329f 100644 --- a/common/systems/src/phys.rs +++ b/common/systems/src/phys.rs @@ -2,8 +2,8 @@ use common::{ comp::{ body::ship::figuredata::{VoxelCollider, VOXEL_COLLIDER_MANIFEST}, fluid_dynamics::{Fluid, LiquidKind, Wings}, - Body, CharacterState, Collider, Density, Mass, Mounting, Ori, PhysicsState, - Pos, PosVelOriDefer, PreviousPhysCache, Projectile, Scale, Stats, Sticky, Vel, + Body, CharacterState, Collider, Density, Mass, Mounting, Ori, PhysicsState, Pos, + PosVelOriDefer, PreviousPhysCache, Projectile, Scale, Stats, Sticky, Vel, }, consts::{AIR_DENSITY, FRIC_GROUND, GRAVITY}, event::{EventBus, ServerEvent}, @@ -87,10 +87,7 @@ fn integrate_forces( vel } -fn calc_z_limit( - char_state_maybe: Option<&CharacterState>, - collider: &Collider, -) -> (f32, f32) { +fn calc_z_limit(char_state_maybe: Option<&CharacterState>, collider: &Collider) -> (f32, f32) { let modifier = if char_state_maybe.map_or(false, |c_s| c_s.is_dodge() || c_s.is_glide()) { 0.5 } else {