Skip to content

Commit 28465b2

Browse files
committed
Revert "Update codes follow CORE changes"
This reverts commit 00c5842.
1 parent 00c5842 commit 28465b2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Scripts/AimAtCursorPlayerCharacterController.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,7 @@ protected void UpdateInput()
239239

240240
UpdateLookInput();
241241
UpdateWASDInput();
242-
// Set sprinting state
243-
MovementState movementState = PlayerCharacterEntity.MovementState;
244-
if (isSprinting)
245-
movementState |= MovementState.IsSprinting;
246-
else
247-
movementState &= ~MovementState.IsSprinting;
248-
PlayerCharacterEntity.SetMovement(movementState);
242+
PlayerCharacterEntity.SetExtraMovement(isSprinting ? ExtraMovementState.IsSprinting : ExtraMovementState.None);
249243
}
250244

251245
protected void UpdateWASDInput()

0 commit comments

Comments
 (0)