mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'sam/fix-roll' into 'master'
Fix first person backwards roll. See merge request veloren/veloren!2558
This commit is contained in:
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user