diff options
author | Ben Deutsch <ben@bendeutsch.de> | 2018-11-22 22:47:15 +0100 |
---|---|---|
committer | Paramat <paramat@users.noreply.github.com> | 2018-11-22 21:47:15 +0000 |
commit | 93bccb349080b0b184cdda9e7ab4a364664efe70 (patch) | |
tree | 2ee9bff24225c1d50a0ca0ff5c671354af846e44 /src/player.h | |
parent | 1c91cb8f8f6ea15dc1308aace666bd1ebd25a28c (diff) | |
download | minetest-93bccb349080b0b184cdda9e7ab4a364664efe70.tar.gz minetest-93bccb349080b0b184cdda9e7ab4a364664efe70.tar.bz2 minetest-93bccb349080b0b184cdda9e7ab4a364664efe70.zip |
Client-side autojump. Remove Android-only stepheight autojump (#7228)
Works by detecting a collision while moving forward and then
simulating a jump. If the simulated jump is more successful,
an artificial jump key press is injected in the client.
Includes setting and key change GUI element for enabling and
disabling this feature.
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/player.h b/src/player.h index 66cd0f5cf..674491546 100644 --- a/src/player.h +++ b/src/player.h @@ -92,10 +92,11 @@ struct PlayerSettings bool always_fly_fast = false; bool aux1_descends = false; bool noclip = false; + bool autojump = false; - const std::string setting_names[6] = { + const std::string setting_names[7] = { "free_move", "fast_move", "continuous_forward", "always_fly_fast", - "aux1_descends", "noclip" + "aux1_descends", "noclip", "autojump" }; void readGlobalSettings(); }; |