diff --git a/src/game/gamecore.cpp b/src/game/gamecore.cpp index c174cba11..33ae4d99d 100644 --- a/src/game/gamecore.cpp +++ b/src/game/gamecore.cpp @@ -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);