From b43c59e828b148d28e9c7ca0ff8da290b7f47b89 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 30 Jun 2023 07:23:41 +1000 Subject: [PATCH] Update StarPlayer.cpp --- 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 188afef..fc2a9a7 100644 --- a/source/game/StarPlayer.cpp +++ b/source/game/StarPlayer.cpp @@ -1562,7 +1562,7 @@ void Player::processControls() { } if (useMoveVector) { - m_pendingMoves.insert(signbit(m_moveVector.x()) ? MoveControlType::Left : MoveControlType::Right); + m_pendingMoves.insert(m_moveVector.x() < 0.0f ? MoveControlType::Left : MoveControlType::Right); m_movementController->setMoveSpeedMultiplier(clamp(abs(m_moveVector.x()), 0.0f, 1.0f)); } else