Skip to content
Snippets Groups Projects
Commit 1cda39d5 authored by ShadowNinja's avatar ShadowNinja Committed by PilzAdam
Browse files

Don't fall off nodes if sneaking with free_move on but without fly privileges

parent 32552fed
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,7 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d, ...@@ -159,7 +159,7 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d,
If sneaking, keep in range from the last walked node and don't If sneaking, keep in range from the last walked node and don't
fall off from it fall off from it
*/ */
if(control.sneak && m_sneak_node_exists && !g_settings->getBool("free_move")) if(control.sneak && m_sneak_node_exists && !(fly_allowed && g_settings->getBool("free_move")))
{ {
f32 maxd = 0.5*BS + sneak_max; f32 maxd = 0.5*BS + sneak_max;
v3f lwn_f = intToFloat(m_sneak_node, BS); v3f lwn_f = intToFloat(m_sneak_node, BS);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment