NX/VITA: Fix Gyro not working if walking forward

This commit is contained in:
Ian 2023-09-08 15:53:52 -04:00
parent aa261665f4
commit 0a8f24ac1e

View file

@ -317,13 +317,9 @@ void CL_AdjustAngles (void)
// vita gyro support by rinnegatamante (originally from vitaquake)
// creds to the switch-examples for nx support
if (motioncam.value) {
//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)
if (gyromode.value && cl.stats[STAT_ZOOM] != 1 && cl.stats[STAT_ZOOM] != 2)
return;
#ifdef VITA