From 349b5021498c6c7e8ca5efcaf3dd53bd8a901d12 Mon Sep 17 00:00:00 2001 From: Phnod Date: Thu, 31 Aug 2023 20:12:45 -0400 Subject: [PATCH] port: apply FovAffectsZoom to Farsight's secondary fire mode --- src/game/bondmove.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/game/bondmove.c b/src/game/bondmove.c index 62d42ee54..85465d78b 100644 --- a/src/game/bondmove.c +++ b/src/game/bondmove.c @@ -1705,9 +1705,22 @@ void bmoveProcessInput(bool allowc1x, bool allowc1y, bool allowc1buttons, bool i } #endif +#ifdef PLATFORM_N64 if (eraserfov < 2) { eraserfov = 2; } +#else + if (g_PlayerFovAffectsZoom) { + if (eraserfov < 2 * (g_PlayerDefaultFovY / 60.0f)) { + eraserfov = 2 * (g_PlayerDefaultFovY / 60.0f); + } + } + else { + if (eraserfov < 2) { + eraserfov = 2; + } + } +#endif g_Vars.currentplayer->gunzoomfovs[1] = eraserfov;