From fb009ae52fa1effb0e5eef71d0da6cdb9a7f7bf5 Mon Sep 17 00:00:00 2001 From: Phnod Date: Thu, 31 Aug 2023 20:58:33 -0400 Subject: [PATCH] fix: allow dynamic zoom weapons to fully zoom out to 1x zoom --- src/game/game_0b0fd0.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/game/game_0b0fd0.c b/src/game/game_0b0fd0.c index 5840e0063..0904f03b3 100644 --- a/src/game/game_0b0fd0.c +++ b/src/game/game_0b0fd0.c @@ -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 } }