Skip to content
Permalink
Browse files

Sneak: Fix sneaking on free-floating lower-half slabs

  • Loading branch information...
sfan5 committed Mar 29, 2017
1 parent b85301c commit 5e806690fc5e0067247bbc1e541ba03b83fb761b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/localplayer.cpp
@@ -324,7 +324,7 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
if (m_sneak_node_exists)
position_y_mod = m_sneak_node_bb_top.MaxEdge.Y - 0.05 * BS;
else
position_y_mod = (1.0 - 0.05) * BS;
position_y_mod = (0.5 - 0.05) * BS;
v3s16 current_node = floatToInt(position - v3f(0, position_y_mod, 0), BS);
/*
Check the nodes under the player to see from which node the

1 comment on commit 5e80669

@paramat

This comment has been minimized.

Copy link
Member

commented on 5e80669 Mar 30, 2017

Confirmed fixed.

Please sign in to comment.
You can’t perform that action at this time.