port: don't autoturn when looking too far to the side in horizon scanner mode

This commit is contained in:
fgsfds committed 2023-10-18 16:17:26 +02:00
1 parent 8bf14c4044
commit ba51e9d5d1
1 file changed
+1 -1
+1 -1
View File
@@ -1290,7 +1290,7 @@ void bmoveProcessInput(bool allowc1x, bool allowc1y, bool allowc1buttons, bool i
#ifndef PLATFORM_N64
// Handle turning and looking up/down via mouselook when aiming
if (g_Vars.currentplayer->insightaimmode && allowmcross) {
if (g_Vars.currentplayer->insightaimmode && allowmcross && bgunGetWeaponNum(HAND_RIGHT) != WEAPON_HORIZONSCANNER) {
if (g_Vars.currentplayer->swivelpos[0] > 0.9f) {
movedata.aimturnrightspeed = (g_Vars.currentplayer->swivelpos[0] - 0.9f) / 0.1f;
movedata.aimturnleftspeed = 0.f;