FOV: Raise lower limit to avoid zoom-loading of distant world (#7234)

In the client, raise lower limit from 30 to 45 degrees, to avoid server
seeing this as a zoom and loading world beyond the server-set limit.
Add minimum in settingtypes.txt and enforce lower limit when set using
minetest.conf.

In the server, distrust the client-sent FOV if below the heuristic zoom
threshold and use the player object property 'zoom_fov' to check it, to
protect against hacked clients.
This commit is contained in:
paramat 2018-04-15 21:56:05 +01:00 committed by Nils Dagsson Moskopp
parent 2b13217021
commit 3151bab1e3
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ fullscreen_bpp (Full screen BPP) int 24
vsync (V-Sync) bool false
# Field of view in degrees.
fov (Field of view) int 72 30 160
fov (Field of view) int 72 45 160
# Adjust the gamma encoding for the light tables. Higher numbers are brighter.
# This setting is for the client only and is ignored by the server.