diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-02-14 12:07:49 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-02-14 12:07:49 +0200 |
commit | 5573142a2bd4fe65adf4219b21e6708296610563 (patch) | |
tree | 9d964e1d130dcf231ed8005c3818533ec271425c /src | |
parent | b1defb4defe4b8a159bb69439a552cad504123a4 (diff) | |
download | minetest-5573142a2bd4fe65adf4219b21e6708296610563.tar.gz minetest-5573142a2bd4fe65adf4219b21e6708296610563.tar.bz2 minetest-5573142a2bd4fe65adf4219b21e6708296610563.zip |
disabled jumping in sneak mode if far away from the edge because it can drop the player
Diffstat (limited to 'src')
-rw-r--r-- | src/player.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/player.cpp b/src/player.cpp index 61ed87504..02eb83871 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -587,9 +587,11 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d) /* If sneaking, the player's collision box can be in air, so this has to be set explicitly + NOTE: Not allowed, because jumping in the situation can drop + the player */ - if(m_sneak_node_exists) - touching_ground = true; + /*if(m_sneak_node_exists) + touching_ground = true;*/ /* Set new position |