mirror of
https://gitlab.com/veloren/veloren.git
synced 2025-07-25 21:02:31 +00:00
End rolling when player is in the air
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user