mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix first person backwards roll.
This commit is contained in:
parent
5da8c70f48
commit
d2cb0c76a7
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user