Dont teleport back if holding sneak when detaching/turn freemove off

This commit is contained in:
PilzAdam 2013-05-19 20:56:25 +02:00
parent cc92e45b78
commit bc66f46323
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
@ -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;
}