forked from Ports/perfect_dark
fix: allow dynamic zoom weapons to fully zoom out to 1x zoom
This commit is contained in:
1 parent
2a5160c519
commit
fb009ae52f
1 file changed
+6
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user