NX/VITA: Fix ADS Only Gyro mode

This commit is contained in:
Ian 2023-09-06 19:26:44 -04:00
parent e2830e3108
commit 8ad380f6b3
1 changed files with 7 additions and 1 deletions

View File

@ -317,7 +317,13 @@ 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 && client_sprinting == 1) //sB fix gyro activating while sprinting.
//sB fix gyro activating while sprinting.
// cypress -- oops! this killed our early return! moving it
if (client_sprinting == 1)
return;
// If gyro is set to ADS only and we're not ADSing, goodbye.
if (gyromode.value && cl.stats[STAT_ZOOM] == 0)
return;
#ifdef VITA