Skip to content

Commit

Permalink
Dont teleport back if holding sneak when detaching/turn freemove off
Browse files Browse the repository at this point in the history
  • Loading branch information
PilzAdam committed May 19, 2013
1 parent cc92e45 commit bc66f46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/localplayer.cpp
Expand Up @@ -73,6 +73,7 @@ void LocalPlayer::move(f32 dtime, ClientEnvironment *env, f32 pos_max_d,
if(isAttached)
{
setPosition(overridePosition);
m_sneak_node_exists = false;
return;
}

Expand All @@ -85,6 +86,7 @@ void LocalPlayer::move(f32 dtime, ClientEnvironment *env, f32 pos_max_d,
{
position += m_speed * dtime;
setPosition(position);
m_sneak_node_exists = false;
return;
}

Expand Down

0 comments on commit bc66f46

Please sign in to comment.