mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
tried to fix block selection in map rendering a bit
This commit is contained in:
parent
ccf5eae751
commit
282912caa0
12
src/map.cpp
12
src/map.cpp
@ -3378,13 +3378,13 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
|
|||||||
|
|
||||||
// Take a fair amount as we will be dropping more out later
|
// Take a fair amount as we will be dropping more out later
|
||||||
v3s16 p_blocks_min(
|
v3s16 p_blocks_min(
|
||||||
p_nodes_min.X / MAP_BLOCKSIZE - 1,
|
p_nodes_min.X / MAP_BLOCKSIZE - 2,
|
||||||
p_nodes_min.Y / MAP_BLOCKSIZE - 1,
|
p_nodes_min.Y / MAP_BLOCKSIZE - 2,
|
||||||
p_nodes_min.Z / MAP_BLOCKSIZE - 1);
|
p_nodes_min.Z / MAP_BLOCKSIZE - 2);
|
||||||
v3s16 p_blocks_max(
|
v3s16 p_blocks_max(
|
||||||
p_nodes_max.X / MAP_BLOCKSIZE,
|
p_nodes_max.X / MAP_BLOCKSIZE + 1,
|
||||||
p_nodes_max.Y / MAP_BLOCKSIZE,
|
p_nodes_max.Y / MAP_BLOCKSIZE + 1,
|
||||||
p_nodes_max.Z / MAP_BLOCKSIZE);
|
p_nodes_max.Z / MAP_BLOCKSIZE + 1);
|
||||||
|
|
||||||
u32 vertex_count = 0;
|
u32 vertex_count = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user