From 47ae258c2ead64542896a0c93c65cfe5bc635361 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 28 Jun 2023 22:59:15 +1000 Subject: [PATCH] ok maybe don't override the animation state if it's walk --- source/game/StarPlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/game/StarPlayer.cpp b/source/game/StarPlayer.cpp index dd74503..872443f 100644 --- a/source/game/StarPlayer.cpp +++ b/source/game/StarPlayer.cpp @@ -1685,7 +1685,7 @@ void Player::processStateChanges() { } } - if (m_moveVector.x() != 0.0f && (m_state == State::Run || m_state == State::Walk)) + if (m_moveVector.x() != 0.0f && (m_state == State::Run)) m_state = abs(m_moveVector.x()) > 0.5f ? State::Run : State::Walk; if (m_state == State::Jump && (oldState == State::Idle || oldState == State::Run || oldState == State::Walk || oldState == State::Crouch))