fix: allow dynamic zoom weapons to fully zoom out to 1x zoom

This commit is contained in:
Phnod committed 2023-08-31 20:58:33 -04:00
1 parent 2a5160c519
commit fb009ae52f
1 file changed
+6
+6
View File
@@ -244,9 +244,15 @@ void currentPlayerZoomOut(f32 fovpersec)
g_Vars.currentplayer->gunzoomfovs[index] *= 1.0f + amount * 0.1f;
#if PLATFORM_N64
if (g_Vars.currentplayer->gunzoomfovs[index] > 60) {
g_Vars.currentplayer->gunzoomfovs[index] = 60;
}
#else
if (g_Vars.currentplayer->gunzoomfovs[index] > 60 * g_PlayerFovZoomMultiplier) {
g_Vars.currentplayer->gunzoomfovs[index] = 60 * g_PlayerFovZoomMultiplier;
}
#endif
}
}