From e24f7954f24ebc9fff1522ae71f232a944689a39 Mon Sep 17 00:00:00 2001 From: telastrus <4415544-telastrus@users.noreply.gitlab.com> Date: Thu, 21 Nov 2019 23:56:07 -0500 Subject: [PATCH] jump while underwater --- common/src/sys/controller.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/sys/controller.rs b/common/src/sys/controller.rs index a9fd1a1e00..aed96a0b7d 100644 --- a/common/src/sys/controller.rs +++ b/common/src/sys/controller.rs @@ -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)); }