Skip to content

Commit

Permalink
Sneak: Fix sneaking on free-floating lower-half slabs
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Mar 29, 2017
1 parent b85301c commit 5e80669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/localplayer.cpp
Expand Up @@ -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
Expand Down

1 comment on commit 5e80669

@paramat
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed fixed.

Please sign in to comment.