Fixed Gyro aiming activating while sprinting (while set to ADS only)

just as it says
This commit is contained in:
Tyler Young 2022-11-27 19:02:53 -05:00
parent 9a24596e46
commit 18a5ae1fb9
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View file

@ -267,6 +267,9 @@ CL_AdjustAngles
Moves the local angle positions
================
*/
extern float client_sprinting; //sB fix a bugggggggg and SQUASH
void CL_AdjustAngles (void)
{
float speed;
@ -314,7 +317,7 @@ void CL_AdjustAngles (void)
// vita gyro support by rinnegatamante (originally from vitaquake)
// creds to the switch-examples for nx support
if (motioncam.value) {
if (gyromode.value && cl.stats[STAT_ZOOM] == 0)
if (gyromode.value && cl.stats[STAT_ZOOM] == 0 || client_sprinting == 1) //sB fix gyro activating while sprinting.
return;
#ifdef VITA