diff --git a/src/clientiface.cpp b/src/clientiface.cpp index a45242e1c..45df9684a 100644 --- a/src/clientiface.cpp +++ b/src/clientiface.cpp @@ -180,7 +180,12 @@ void RemoteClient::GetNextBlocks ( s32 new_nearest_unsent_d = -1; // Get view range and camera fov (radians) from the client + s16 fog_distance = sao->getPlayer()->getSkyParams().fog_distance; s16 wanted_range = sao->getWantedRange() + 1; + if (fog_distance >= 0) { + // enforce if limited by mod + wanted_range = std::min(wanted_range, std::ceil((float)fog_distance / MAP_BLOCKSIZE)); + } float camera_fov = sao->getFov(); /*