Update StarPlayer.cpp

This commit is contained in:
Kae 2023-06-30 07:23:41 +10:00
parent e02607cdf4
commit b43c59e828

View File

@ -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