mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix cheat with walljump
This commit is contained in:
parent
22d9f3f146
commit
374bc024bd
|
@ -604,14 +604,13 @@ void CCharacterCore::Move()
|
|||
vec2 OldVel = m_Vel;
|
||||
m_pCollision->MoveBox(&NewPos, &m_Vel, vec2(28.0f, 28.0f), 0);
|
||||
|
||||
m_Colliding = 0;
|
||||
if(m_Vel.x < 0.001 && m_Vel.x > -0.001)
|
||||
{
|
||||
if(OldVel.x > 0)
|
||||
m_Colliding = 1;
|
||||
else if(OldVel.x < 0)
|
||||
m_Colliding = 2;
|
||||
else
|
||||
m_Colliding = 0;
|
||||
}
|
||||
|
||||
m_Vel.x = m_Vel.x*(1.0f/RampValue);
|
||||
|
|
Loading…
Reference in a new issue