1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Remove unused pos_max_d

This commit is contained in:
sfan5
2024-11-11 19:46:02 +01:00
parent 9a44d835d6
commit c00129360e
11 changed files with 29 additions and 79 deletions

View File

@@ -1143,11 +1143,10 @@ void GenericCAO::step(float dtime, ClientEnvironment *env)
box.MinEdge *= BS;
box.MaxEdge *= BS;
collisionMoveResult moveresult;
f32 pos_max_d = BS*0.125; // Distance per iteration
v3f p_pos = m_position;
v3f p_velocity = m_velocity;
moveresult = collisionMoveSimple(env,env->getGameDef(),
pos_max_d, box, m_prop.stepheight, dtime,
box, m_prop.stepheight, dtime,
&p_pos, &p_velocity, m_acceleration,
this, m_prop.collideWithObjects);
// Apply results