summaryrefslogtreecommitdiff
path: root/src/defaultsettings.cpp
diff options
context:
space:
mode:
authorBen Deutsch <ben@bendeutsch.de>2018-11-22 22:47:15 +0100
committerParamat <paramat@users.noreply.github.com>2018-11-22 21:47:15 +0000
commit93bccb349080b0b184cdda9e7ab4a364664efe70 (patch)
tree2ee9bff24225c1d50a0ca0ff5c671354af846e44 /src/defaultsettings.cpp
parent1c91cb8f8f6ea15dc1308aace666bd1ebd25a28c (diff)
downloadminetest-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/defaultsettings.cpp')
-rw-r--r--src/defaultsettings.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
index 6a0474e74..2408bffeb 100644
--- a/src/defaultsettings.cpp
+++ b/src/defaultsettings.cpp
@@ -247,6 +247,11 @@ void set_default_settings(Settings *settings)
settings->setDefault("aux1_descends", "false");
settings->setDefault("doubletap_jump", "false");
settings->setDefault("always_fly_fast", "true");
+#ifdef __ANDROID__
+ settings->setDefault("autojump", "true");
+#else
+ settings->setDefault("autojump", "false");
+#endif
settings->setDefault("continuous_forward", "false");
settings->setDefault("enable_joysticks", "false");
settings->setDefault("joystick_id", "0");