From 93bccb349080b0b184cdda9e7ab4a364664efe70 Mon Sep 17 00:00:00 2001 From: Ben Deutsch Date: Thu, 22 Nov 2018 22:47:15 +0100 Subject: 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. --- src/defaultsettings.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/defaultsettings.cpp') 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"); -- cgit v1.2.3