1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Optionally disable optimization that causes underwater and cave rendering glitches. (#4686)

This commit is contained in:
lhofhansl 2016-10-30 20:35:55 -07:00 committed by kwolekr
parent 595932a860
commit e1842ed370
3 changed files with 11 additions and 1 deletions

View file

@ -174,6 +174,8 @@ void RemoteClient::GetNextBlocks (
s32 new_nearest_unsent_d = -1;
const s16 full_d_max = g_settings->getS16("max_block_send_distance");
const s16 d_opt = g_settings->getS16("block_send_optimize_distance");
s16 d_max = full_d_max;
s16 d_max_gen = g_settings->getS16("max_block_generate_distance");
@ -300,7 +302,7 @@ void RemoteClient::GetNextBlocks (
Block is near ground level if night-time mesh
differs from day-time mesh.
*/
if(d >= 4)
if(d >= d_opt)
{
if(block->getDayNightDiff() == false)
continue;