Don't use movement efficiency for orientation

This commit is contained in:
Joshua Barretto 2021-04-25 23:00:30 +01:00
parent 3e4afc5a45
commit 94b6fa6da3

View File

@ -245,7 +245,7 @@ pub fn handle_move(data: &JoinData, update: &mut StateUpdate, efficiency: f32) {
/// Updates components to move player as if theyre on ground or in air
#[allow(clippy::assign_op_pattern)] // TODO: Pending review in #587
fn basic_move(data: &JoinData, update: &mut StateUpdate, efficiency: f32) {
handle_orientation(data, update, efficiency);
handle_orientation(data, update, 1.0);
let accel = if data.physics.on_ground {
data.body.base_accel()