We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ff15d3 commit 03edcafCopy full SHA for 03edcaf
src/clientiface.cpp
@@ -199,7 +199,10 @@ void RemoteClient::GetNextBlocks (
199
// Distrust client-sent FOV and get server-set player object property
200
// zoom FOV (degrees) as a check to avoid hacked clients using FOV to load
201
// distant world.
202
- float prop_zoom_fov = sao->getZoomFOV() * core::DEGTORAD;
+ // (zoom is disabled by value 0)
203
+ float prop_zoom_fov = sao->getZoomFOV() < 0.001f ?
204
+ 0.0f :
205
+ std::max(camera_fov, sao->getZoomFOV() * core::DEGTORAD);
206
207
const s16 full_d_max = std::min(adjustDist(m_max_send_distance, prop_zoom_fov),
208
wanted_range);
0 commit comments