forked from Ports/perfect_dark
port: apply FovAffectsZoom to Farsight's secondary fire mode
This commit is contained in:
1 parent
1c1164d9e8
commit
349b502149
1 file changed
+13
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user