- Blood: Slightly cleaner view bobbing math.

This commit is contained in:
Mitchell Richters 2022-09-30 19:57:39 +10:00 committed by Christoph Oelckers
parent 7eda11fa2c
commit 355860f662

View file

@ -520,8 +520,7 @@ static void SetupView(PLAYER* pPlayer, DVector3& cPos, DAngle& cA, DAngle& cH, s
{
if (cl_viewhbob)
{
cPos.X -= bobWidth * cA.Sin();
cPos.Y += bobWidth * cA.Cos();
cPos.XY() -= cA.ToVector().Rotated90CW() * bobWidth;
}
if (cl_viewvbob)
{