Skip to content

Commit

Permalink
fix zoom_fov
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Aug 25, 2024
1 parent 345fd7c commit bfdbdb4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions builtin/settingtypes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/client/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bfdbdb4

Please sign in to comment.