aboutsummaryrefslogtreecommitdiff
path: root/src/client/localplayer.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>2021-08-30 17:58:18 +0200
committerGitHub <noreply@github.com>2021-08-30 17:58:18 +0200
commitf122888148f6efb2f4d28d4de4e4f4221cb29ac0 (patch)
tree0f470e22d1768fa135a08e75b1d76e35b6531104 /src/client/localplayer.cpp
parent35445d24f425c6291a0580b468919ca83de716fd (diff)
parentf3082146c3d88cfbcc452a8dd4dabe88ad3c7ef8 (diff)
downloaddragonfireclient-f122888148f6efb2f4d28d4de4e4f4221cb29ac0.tar.xz
Merge pull request #42 from Minetest-j45/master
Add AirJump
Diffstat (limited to 'src/client/localplayer.cpp')
-rw-r--r--src/client/localplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/localplayer.cpp b/src/client/localplayer.cpp
index 24a12c35e..e979c5600 100644
--- a/src/client/localplayer.cpp
+++ b/src/client/localplayer.cpp
@@ -340,7 +340,7 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
Player is allowed to jump when this is true.
*/
bool touching_ground_was = touching_ground;
- touching_ground = result.touching_ground;
+ touching_ground = result.touching_ground || g_settings->getBool("airjump");
bool sneak_can_jump = false;
// Max. distance (X, Z) over border for sneaking determined by collision box