mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Rename a variable in localplayer.h, resolves a TODO
This commit is contained in:
parent
2c3f641e0b
commit
11905a6db6
2 changed files with 10 additions and 11 deletions
|
@ -186,7 +186,7 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
|
|||
// Copy parent position if local player is attached
|
||||
if (getParent()) {
|
||||
setPosition(m_cao->getPosition());
|
||||
added_velocity = v3f(0.0f); // ignored
|
||||
m_added_velocity = v3f(0.0f); // ignored
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -202,12 +202,12 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
|
|||
setPosition(position);
|
||||
|
||||
touching_ground = false;
|
||||
added_velocity = v3f(0.0f); // ignored
|
||||
m_added_velocity = v3f(0.0f); // ignored
|
||||
return;
|
||||
}
|
||||
|
||||
m_speed += added_velocity;
|
||||
added_velocity = v3f(0.0f);
|
||||
m_speed += m_added_velocity;
|
||||
m_added_velocity = v3f(0.0f);
|
||||
|
||||
/*
|
||||
Collision detection
|
||||
|
@ -755,7 +755,7 @@ void LocalPlayer::old_move(f32 dtime, Environment *env, f32 pos_max_d,
|
|||
if (getParent()) {
|
||||
setPosition(m_cao->getPosition());
|
||||
m_sneak_node_exists = false;
|
||||
added_velocity = v3f(0.0f);
|
||||
m_added_velocity = v3f(0.0f);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -771,12 +771,12 @@ void LocalPlayer::old_move(f32 dtime, Environment *env, f32 pos_max_d,
|
|||
|
||||
touching_ground = false;
|
||||
m_sneak_node_exists = false;
|
||||
added_velocity = v3f(0.0f);
|
||||
m_added_velocity = v3f(0.0f);
|
||||
return;
|
||||
}
|
||||
|
||||
m_speed += added_velocity;
|
||||
added_velocity = v3f(0.0f);
|
||||
m_speed += m_added_velocity;
|
||||
m_added_velocity = v3f(0.0f);
|
||||
|
||||
/*
|
||||
Collision detection
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue