diff --git a/source/player.cpp b/source/player.cpp index af91104..bec807a 100644 --- a/source/player.cpp +++ b/source/player.cpp @@ -273,6 +273,14 @@ void Player::checkState() vy = 0.0f; jumpCounter = 0; fallCounter = 0; + if (!isOnFloor() && !isOnAutoSurface()) + { + setState(s_falling); + vx = 0.0f; + vy = maxVY; + fallCounter++; + playFallSound(); + } } else if (state == s_jumping)