port: apply FovAffectsZoom to Farsight's secondary fire mode

This commit is contained in:
Phnod committed 2023-08-31 20:39:30 -04:00
1 parent 1c1164d9e8
commit 349b502149
1 file changed
+13
+13
View File
@@ -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;