mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
End rolling when player is in the air
This commit is contained in:
parent
74677784c0
commit
b725b0e9ea
@ -149,7 +149,11 @@ impl<'a> System<'a> for Sys {
|
||||
character.movement = Stand;
|
||||
}
|
||||
|
||||
if !physics.on_ground && (character.movement == Stand || character.movement == Run) {
|
||||
if !physics.on_ground
|
||||
&& (character.movement == Stand
|
||||
|| character.movement.is_roll()
|
||||
|| character.movement == Run)
|
||||
{
|
||||
character.movement = Jump;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user