If standing still return don't return bobbing...

A user reported the camera shaking when they pressed the run key while standing still. The cause of this was the difference in amplitude between head bobbing while walking and running. So I made it return 0 always if you're standing still, only returning the bobbing when moving.
This commit is contained in:
JappaWakka 2025-01-27 18:34:49 +01:00
parent b3f8811503
commit 568d7d62f3

View File

@ -611,7 +611,7 @@ Public Class OverworldCamera
End Sub End Sub
Private Function GetBobbing() As Single Private Function GetBobbing() As Single
If IsSliding = True OrElse Core.GameOptions.ViewBobbing = False Then If IsSliding = True OrElse IsMoving = False OrElse Core.GameOptions.ViewBobbing = False Then
Return 0.0F Return 0.0F
End If End If
If Screen.Level?.Riding = True Then If Screen.Level?.Riding = True Then