From 34087e1a7bd9a09a8d36652dec8d42cb3c480c84 Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Sun, 6 Oct 2019 13:54:16 +0200 Subject: [PATCH] Only get double jump when falling onto a stopper Another unintentional behavior change found by Zwelf. --- src/game/server/entities/character.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp index 3e1c38648..7c122cd79 100644 --- a/src/game/server/entities/character.cpp +++ b/src/game/server/entities/character.cpp @@ -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)