From ba51e9d5d1133b24f3be00305f42fcae3e911ce0 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Wed, 18 Oct 2023 16:17:16 +0200 Subject: [PATCH] port: don't autoturn when looking too far to the side in horizon scanner mode --- src/game/bondmove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/bondmove.c b/src/game/bondmove.c index 1e2cb6f0c..f0dc88568 100644 --- a/src/game/bondmove.c +++ b/src/game/bondmove.c @@ -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;