From bfdbdb4b150d465891080070ea38439fd8615b50 Mon Sep 17 00:00:00 2001 From: proller Date: Mon, 26 Aug 2024 00:09:03 +0200 Subject: [PATCH] fix zoom_fov --- builtin/settingtypes.txt | 3 --- src/client/game.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt index 945fc2176..9131eb45e 100644 --- a/builtin/settingtypes.txt +++ b/builtin/settingtypes.txt @@ -117,9 +117,6 @@ enable_vbo () bool false # Reduce FOV when speed increases movement_fov () bool true -# FOV when using zoom, default 15 -zoom_fov () int 15 - # Increase performance of headless client ( video_driver = null ) headless_optimize () bool false diff --git a/src/client/game.cpp b/src/client/game.cpp index a570b8a82..1a34f9de7 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -3124,7 +3124,7 @@ void Game::updatePlayerControl(const CameraOrientation &cam) else disableCinematic(); } - draw_control.fov_want = player->zoom ? g_settings->getFloat("zoom_fov") : g_settings->getFloat("fov"); + draw_control.fov_want = player->zoom ? player->getZoomFOV() : g_settings->getFloat("fov"); client->sendDrawControl(); } draw_control.fov -= (draw_control.fov - draw_control.fov_want)/7;