Skip to content

Commit da205d8

Browse files
authored
Fix slidejumping as big tux (#3068)
The slide jumping height as big tux is back to normal
1 parent 52cb2a9 commit da205d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/object/player.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ Player::handle_vertical_input()
13891389
if (m_controller->pressed(Control::JUMP)) m_jump_button_timer.start(JUMP_GRACE_TIME);
13901390
if (m_controller->hold(Control::JUMP) && m_jump_button_timer.started() && (m_can_jump || m_coyote_timer.started())) {
13911391
m_jump_button_timer.stop();
1392-
if (m_duck) {
1392+
if (m_duck && !m_sliding) {
13931393
// when running, only jump a little bit; else do a backflip
13941394
if ((m_physic.get_velocity_x() != 0) ||
13951395
(m_controller->hold(Control::LEFT)) ||

0 commit comments

Comments
 (0)