We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 564e11f commit 65d1cb8Copy full SHA for 65d1cb8
src/clientiface.cpp
@@ -140,7 +140,8 @@ void RemoteClient::GetNextBlocks(
140
*/
141
s32 new_nearest_unsent_d = -1;
142
143
- s16 d_max = g_settings->getS16("max_block_send_distance");
+ const s16 full_d_max = g_settings->getS16("max_block_send_distance");
144
+ s16 d_max = full_d_max;
145
s16 d_max_gen = g_settings->getS16("max_block_generate_distance");
146
147
// Don't loop very much at a time
@@ -214,7 +215,7 @@ void RemoteClient::GetNextBlocks(
214
215
generate = false;*/
216
217
// Limit the send area vertically to 1/2
- if(abs(p.Y - center.Y) > d_max / 2)
218
+ if(abs(p.Y - center.Y) > full_d_max / 2)
219
continue;
220
}
221
0 commit comments