jump while underwater

This commit is contained in:
telastrus 2019-11-21 23:56:07 -05:00
parent 905b3ac129
commit 10d6f3e8b3

View File

@ -362,7 +362,9 @@ impl<'a> System<'a> for Sys {
}
// Jump
if inputs.jump && physics.on_ground && vel.0.z <= 0.0 && !character.movement.is_roll() {
if (inputs.jump && physics.on_ground && vel.0.z <= 0.0 && !character.movement.is_roll())
|| (inputs.jump && character.movement == Swim)
{
local_emitter.emit(LocalEvent::Jump(entity));
}