From: Perttu Ahola Date: Mon, 27 Jun 2011 06:50:34 +0000 (+0300) Subject: tried to fix block selection in map rendering a bit X-Git-Tag: 0.2.20110731_3~71 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=282912caa0f8a19d5b5fb94a3cb6a41432a3a2df;p=oweals%2Fminetest.git tried to fix block selection in map rendering a bit --- diff --git a/src/map.cpp b/src/map.cpp index 0f3741691..79f2a40af 100644 --- a/src/map.cpp +++ b/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 v3s16 p_blocks_min( - p_nodes_min.X / MAP_BLOCKSIZE - 1, - p_nodes_min.Y / MAP_BLOCKSIZE - 1, - p_nodes_min.Z / MAP_BLOCKSIZE - 1); + p_nodes_min.X / MAP_BLOCKSIZE - 2, + p_nodes_min.Y / MAP_BLOCKSIZE - 2, + p_nodes_min.Z / MAP_BLOCKSIZE - 2); v3s16 p_blocks_max( - p_nodes_max.X / MAP_BLOCKSIZE, - p_nodes_max.Y / MAP_BLOCKSIZE, - p_nodes_max.Z / MAP_BLOCKSIZE); + p_nodes_max.X / MAP_BLOCKSIZE + 1, + p_nodes_max.Y / MAP_BLOCKSIZE + 1, + p_nodes_max.Z / MAP_BLOCKSIZE + 1); u32 vertex_count = 0;