Skip to content

Commit 00c5842

Browse files
committed
Update codes follow CORE changes
1 parent 97cd197 commit 00c5842

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Scripts/AimAtCursorPlayerCharacterController.cs

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

240240
UpdateLookInput();
241241
UpdateWASDInput();
242-
PlayerCharacterEntity.SetExtraMovement(isSprinting ? ExtraMovementState.IsSprinting : ExtraMovementState.None);
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);
243249
}
244250

245251
protected void UpdateWASDInput()

0 commit comments

Comments
 (0)