From: Perttu Ahola Date: Thu, 3 Nov 2011 13:10:58 +0000 (+0200) Subject: Possible fix to bases of islands/hills getting culled out too early X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=4964daa5be6e89c0cea51b06c8b9c608b47306c4;p=zefram%2Fminetest%2Fminetest_engine.git Possible fix to bases of islands/hills getting culled out too early --- diff --git a/src/map.cpp b/src/map.cpp index 6ba33288..d4eefc73 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -3844,8 +3844,8 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass) Occlusion culling */ - v3s16 cpn = v3s16(block->getPos() * MAP_BLOCKSIZE) - + v3s16(MAP_BLOCKSIZE)/2; + v3s16 cpn = block->getPos() * MAP_BLOCKSIZE; + cpn += v3s16(MAP_BLOCKSIZE/2, MAP_BLOCKSIZE/2, MAP_BLOCKSIZE/2); float step = BS*1; float stepfac = 1.1; float startoff = BS*1;