summaryrefslogtreecommitdiff
path: root/src/collision.h
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/collision.h
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/collision.h')
-rw-r--r--src/collision.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/collision.h b/src/collision.h
index 4d47171ea..4c5594528 100644
--- a/src/collision.h
+++ b/src/collision.h
@@ -41,6 +41,7 @@ struct CollisionInfo
v3s16 node_p = v3s16(-32768,-32768,-32768); // COLLISION_NODE
v3f old_speed;
v3f new_speed;
+ int plane = -1;
};
struct collisionMoveResult