- fix cl_viewbob() for Blood.

Fixes #134.
This commit is contained in:
Mitchell Richters 2020-08-10 22:04:40 +10:00
parent 4c74c172e3
commit db6d2e4d89

View file

@ -834,6 +834,8 @@ void viewDrawScreen(bool sceneonly)
v48 += shakeBobY;
q16horiz += fix16_from_int(mulscale30(0x40000000 - Cos(gView->tiltEffect << 2), 30));
if (gViewPos == 0)
{
if (cl_viewbob)
{
if (cl_viewhbob)
{
@ -844,6 +846,7 @@ void viewDrawScreen(bool sceneonly)
{
cZ += v8c;
}
}
if (cl_slopetilting)
{
q16horiz += q16slopehoriz;