mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Only get double jump when falling onto a stopper
Another unintentional behavior change found by Zwelf.
This commit is contained in:
parent
eab0815ddc
commit
34087e1a7b
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue