From 7113befe8843047cffb1f7e3039c2cfd6bb13e45 Mon Sep 17 00:00:00 2001 From: Eternalisime Date: Sun, 13 Nov 2022 22:21:32 +0100 Subject: [PATCH] removed useless check --- .../anim/src/quadruped_medium/shockwave.rs | 35 +++++-------------- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/voxygen/anim/src/quadruped_medium/shockwave.rs b/voxygen/anim/src/quadruped_medium/shockwave.rs index 4009f5bef9..abcf71033f 100644 --- a/voxygen/anim/src/quadruped_medium/shockwave.rs +++ b/voxygen/anim/src/quadruped_medium/shockwave.rs @@ -72,39 +72,20 @@ impl Animation for ShockwaveAnimation { next.tail.orientation = Quaternion::rotation_x( 0.15 + movement1abs * -0.4 + movement2abs * 0.2 + chargemovementbase * 0.2, ) * Quaternion::rotation_z(shortalt * 0.15); - if legtell > 0.0 { - if mirror.is_sign_positive() { - next.leg_fl.orientation = Quaternion::rotation_x(legswing * 1.4); + next.leg_fl.orientation = Quaternion::rotation_x(legswing * 1.4); - next.foot_fl.orientation = Quaternion::rotation_x(legswing * -0.5); - next.leg_bl.orientation = Quaternion::rotation_x(legswing * 0.3); + next.foot_fl.orientation = Quaternion::rotation_x(legswing * -0.5); + next.leg_bl.orientation = Quaternion::rotation_x(legswing * 0.3); - next.foot_bl.orientation = Quaternion::rotation_x(legswing * -0.3); + next.foot_bl.orientation = Quaternion::rotation_x(legswing * -0.3); - next.leg_fr.orientation = Quaternion::rotation_x(legswing * 1.4); + next.leg_fr.orientation = Quaternion::rotation_x(legswing * 1.4); - next.foot_fr.orientation = Quaternion::rotation_x(legswing * -0.5); + next.foot_fr.orientation = Quaternion::rotation_x(legswing * -0.5); - next.leg_br.orientation = Quaternion::rotation_x(legswing * 0.3); + next.leg_br.orientation = Quaternion::rotation_x(legswing * 0.3); - next.foot_br.orientation = Quaternion::rotation_x(legswing * -0.3); - } else { - next.leg_fl.orientation = Quaternion::rotation_x(legswing * 1.4); - - next.foot_fl.orientation = Quaternion::rotation_x(legswing * -0.5); - next.leg_bl.orientation = Quaternion::rotation_x(legswing * 0.3); - - next.foot_bl.orientation = Quaternion::rotation_x(legswing * -0.3); - - next.leg_fr.orientation = Quaternion::rotation_x(legswing * 1.4); - - next.foot_fr.orientation = Quaternion::rotation_x(legswing * -0.5); - - next.leg_br.orientation = Quaternion::rotation_x(legswing * 0.3); - - next.foot_br.orientation = Quaternion::rotation_x(legswing * -0.3); - } - }; + next.foot_br.orientation = Quaternion::rotation_x(legswing * -0.3); next } }