Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Dec 15, 2024
1 parent 3820c00 commit 85122f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/fm_clientiface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,13 +629,20 @@ uint32_t RemoteClient::SendFarBlocks()
runFarAll(cbpos, cell_size_pow, farmesh_quality, false,
[this, &ordered, &cbpos](
const v3bpos_t &bpos, const bpos_t &size) -> bool {
if (!size) {
return false;
};

// TODO: use block center
const auto bdist = radius_box(cbpos, bpos);
if (bdist << MAP_BLOCKP > farmesh_all_changed) {
return false;
}

block_step_t step = log(size) / log(2);
if (far_blocks_requested.size() < step) {
far_blocks_requested.resize(step);
}
auto &[stepp, sent_ts] = far_blocks_requested[step][bpos];
if (sent_ts < 0) { // <=
return false;
Expand Down

0 comments on commit 85122f8

Please sign in to comment.