- Blood: Don't use cl_viewbob to control bobbing overall, only cl_viewhbob and cl_viewvbob as exposed via the menus.

This commit is contained in:
Mitchell Richters 2021-01-02 13:16:07 +11:00
parent ae731d1eaf
commit 3516e4c3b0

View file

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