mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +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)
|
if (cl_viewhbob)
|
||||||
{
|
{
|
||||||
cPos.X -= bobWidth * cA.Sin();
|
cPos.XY() -= cA.ToVector().Rotated90CW() * bobWidth;
|
||||||
cPos.Y += bobWidth * cA.Cos();
|
|
||||||
}
|
}
|
||||||
if (cl_viewvbob)
|
if (cl_viewvbob)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue