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/collision.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/collision.cpp') diff --git a/src/collision.cpp b/src/collision.cpp index 48a681dca..9626221a0 100644 --- a/src/collision.cpp +++ b/src/collision.cpp @@ -515,6 +515,7 @@ collisionMoveResult collisionMoveSimple(Environment *env, IGameDef *gamedef, info.node_p = nearest_info.position; info.old_speed = *speed_f; + info.plane = nearest_collided; // Set the speed component that caused the collision to zero if (step_up) { -- cgit v1.2.3