diff --git a/src/gameplay_style.rs b/src/gameplay_style.rs index 999e1d1..4738d6b 100644 --- a/src/gameplay_style.rs +++ b/src/gameplay_style.rs @@ -321,16 +321,17 @@ impl WalkSettings{ if control_dir==crate::integer::vec3::ZERO{ return control_dir; } - let n=normal.length_squared(); - let m=control_dir.length_squared(); - let nm=(n*m).fix_2(); + let nn=normal.length_squared(); + let mm=control_dir.length_squared(); + let nnmm=nn*mm; let d=normal.dot(control_dir); - if d