Fix: Walljump works properly even in maps without double jump

This commit is contained in:
def 2014-06-24 23:47:33 +02:00
parent 7a4e5ed746
commit 4c71b8cf56

View file

@ -1510,10 +1510,10 @@ void CCharacter::HandleTiles(int Index)
}
else if((m_TileIndex == TILE_WALLJUMP) || (m_TileFIndex == TILE_WALLJUMP))
{
if(m_Core.m_Jumps == m_Core.m_JumpedTotal + 1 && m_Core.m_Vel.y > 0 && m_Core.m_Colliding && m_Core.m_LeftWall)
if(m_Core.m_Vel.y > 0 && m_Core.m_Colliding && m_Core.m_LeftWall)
{
m_Core.m_LeftWall = false;
m_Core.m_JumpedTotal--;
m_Core.m_JumpedTotal = m_Core.m_Jumps - 1;
m_Core.m_Jumped = 1;
}
}