- 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

@ -835,14 +835,17 @@ void viewDrawScreen(bool sceneonly)
q16horiz += fix16_from_int(mulscale30(0x40000000 - Cos(gView->tiltEffect << 2), 30)); q16horiz += fix16_from_int(mulscale30(0x40000000 - Cos(gView->tiltEffect << 2), 30));
if (gViewPos == 0) if (gViewPos == 0)
{ {
if (cl_viewhbob) if (cl_viewbob)
{ {
cX -= mulscale30(v74, Sin(fix16_to_int(cA))) >> 4; if (cl_viewhbob)
cY += mulscale30(v74, Cos(fix16_to_int(cA))) >> 4; {
} cX -= mulscale30(v74, Sin(fix16_to_int(cA))) >> 4;
if (cl_viewvbob) cY += mulscale30(v74, Cos(fix16_to_int(cA))) >> 4;
{ }
cZ += v8c; if (cl_viewvbob)
{
cZ += v8c;
}
} }
if (cl_slopetilting) if (cl_slopetilting)
{ {