mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- Blood: Slightly cleaner view bobbing math.
This commit is contained in:
parent
7eda11fa2c
commit
355860f662
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue