This commit is contained in:
proller committed 2025-08-17 02:32:17 +02:00
1 parent 4e20921ca8
commit e58f14b996
2 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -1454,7 +1454,7 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
draw_order.reserve(m_drawlist.size());
for (auto &i : m_drawlist) {
const v3s16 block_pos = i.first;
auto block = i.second;
const auto & block = i.second;
int mesh_step = getLodStep(
m_control, getNodeBlockPos(m_camera_position_node), block->getPos(), speedf);
+5 -1
View File
@@ -237,7 +237,11 @@ block_step_t getFarStepCellSize(const MapDrawControl &draw_control, const v3bpos
return {};
#endif
*/
const auto step = int(log(res->size) / log(2)) - cell_size_pow;
const auto step1 = int(log(res->size) / log(2));
if (cell_size_pow >= step1) {
return 0;
}
const auto step = step1 - cell_size_pow;
return step;
}
return 0; // TODO! fix intersection with cell_size_pow