mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- Blood: Move some effect code into viewUpdateShake()
along with the other effect code.
This commit is contained in:
parent
6636064d1f
commit
7eda11fa2c
1 changed files with 3 additions and 1 deletions
|
@ -423,6 +423,8 @@ void viewUpdateShake(PLAYER* pPlayer, DVector3& cPos, DAngle& cA, DAngle& cH, do
|
|||
};
|
||||
doEffect(pPlayer->flickerEffect);
|
||||
doEffect(pPlayer->quakeEffect);
|
||||
|
||||
cH += DAngle::fromDeg((1 - BobVal((pPlayer->tiltEffect << 2) + 512)) * 13.2);
|
||||
}
|
||||
|
||||
|
||||
|
@ -513,7 +515,7 @@ static void SetupView(PLAYER* pPlayer, DVector3& cPos, DAngle& cA, DAngle& cH, s
|
|||
}
|
||||
|
||||
viewUpdateShake(pPlayer, cPos, cA, cH, shakeX, shakeY);
|
||||
cH += DAngle::fromDeg((1 - BobVal((pPlayer->tiltEffect << 2) + 512)) * 13.2);
|
||||
|
||||
if (gViewPos == 0)
|
||||
{
|
||||
if (cl_viewhbob)
|
||||
|
|
Loading…
Reference in a new issue