mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-11 07:40:41 +00:00
- 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:
parent
ae731d1eaf
commit
3516e4c3b0
1 changed files with 7 additions and 10 deletions
|
@ -617,17 +617,14 @@ void viewDrawScreen(bool sceneonly)
|
||||||
cH += buildhoriz(mulscale30(0x40000000 - Cos(gView->tiltEffect << 2), 30));
|
cH += buildhoriz(mulscale30(0x40000000 - Cos(gView->tiltEffect << 2), 30));
|
||||||
if (gViewPos == 0)
|
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;
|
||||||
cX -= mulscale30(v74, Sin(cA.asbuild())) >> 4;
|
}
|
||||||
cY += mulscale30(v74, Cos(cA.asbuild())) >> 4;
|
if (cl_viewvbob)
|
||||||
}
|
{
|
||||||
if (cl_viewvbob)
|
cZ += v8c;
|
||||||
{
|
|
||||||
cZ += v8c;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (cl_slopetilting)
|
if (cl_slopetilting)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue