Skip to content

Commit

Permalink
Fix slidejumping as big tux (#3068)
Browse files Browse the repository at this point in the history
The slide jumping height as big tux is back to normal
  • Loading branch information
MatusGuy authored Oct 8, 2024
1 parent 52cb2a9 commit da205d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,7 @@ Player::handle_vertical_input()
if (m_controller->pressed(Control::JUMP)) m_jump_button_timer.start(JUMP_GRACE_TIME);
if (m_controller->hold(Control::JUMP) && m_jump_button_timer.started() && (m_can_jump || m_coyote_timer.started())) {
m_jump_button_timer.stop();
if (m_duck) {
if (m_duck && !m_sliding) {
// when running, only jump a little bit; else do a backflip
if ((m_physic.get_velocity_x() != 0) ||
(m_controller->hold(Control::LEFT)) ||
Expand Down

0 comments on commit da205d8

Please sign in to comment.