Only get double jump when falling onto a stopper

Another unintentional behavior change found by Zwelf.
This commit is contained in:
heinrich5991 2019-10-06 13:54:16 +02:00
parent eab0815ddc
commit 34087e1a7b

View file

@ -1674,12 +1674,12 @@ void CCharacter::HandleTiles(int Index)
}
// stopper
m_Core.m_Vel = ClampVel(m_MoveRestrictions, m_Core.m_Vel);
if(m_MoveRestrictions&CANTMOVE_DOWN)
if(m_Core.m_Vel > 0 && (m_MoveRestrictions&CANTMOVE_DOWN))
{
m_Core.m_Jumped = 0;
m_Core.m_JumpedTotal = 0;
}
m_Core.m_Vel = ClampVel(m_MoveRestrictions, m_Core.m_Vel);
// handle switch tiles
if(GameServer()->Collision()->IsSwitch(MapIndex) == TILE_SWITCHOPEN && Team() != TEAM_SUPER && GameServer()->Collision()->GetSwitchNumber(MapIndex) > 0)