mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 03:51:50 +00:00
P_DemoCameraMovement: limit vertical camera aiming if software shearing
This commit is contained in:
parent
8f9c383188
commit
20d9c781c8
1 changed files with 17 additions and 1 deletions
18
src/p_user.c
18
src/p_user.c
|
|
@ -3002,7 +3002,23 @@ void P_DemoCameraMovement(camera_t *cam, UINT8 num)
|
|||
}
|
||||
}
|
||||
|
||||
G_FinalClipAimingPitch((INT32 *)&cam->aiming, NULL, false);
|
||||
if (rendermode == render_soft
|
||||
#ifdef HWRENDER
|
||||
|| (rendermode == render_opengl && (cv_glshearing.value == 1))
|
||||
#endif
|
||||
)
|
||||
{
|
||||
// Extra restriction on this so it's not possible to
|
||||
// distort the view too much.
|
||||
if ((INT32)cam->aiming > ANGLE_45)
|
||||
cam->aiming = ANGLE_45;
|
||||
else if ((INT32)cam->aiming < -ANGLE_45)
|
||||
cam->aiming = -ANGLE_45;
|
||||
}
|
||||
else
|
||||
{
|
||||
G_ClipAimingPitch((INT32 *)&cam->aiming);
|
||||
}
|
||||
|
||||
cam->momx = cam->momy = cam->momz = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue