Merge branch 'sam/fix-roll' into 'master'

Fix first person backwards roll.

See merge request veloren/veloren!2558
This commit is contained in:
Samuel Keiffer
2021-07-05 03:46:47 +00:00

View File

@ -50,6 +50,9 @@ impl CharacterBehavior for Data {
fn behavior(&self, data: &JoinData) -> StateUpdate { fn behavior(&self, data: &JoinData) -> StateUpdate {
let mut update = StateUpdate::from(data); let mut update = StateUpdate::from(data);
// You should not be able to strafe while rolling
update.should_strafe = false;
// Smooth orientation // Smooth orientation
handle_orientation(data, &mut update, 2.5); handle_orientation(data, &mut update, 2.5);