aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-03 15:10:58 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-03 15:10:58 +0200
commit4964daa5be6e89c0cea51b06c8b9c608b47306c4 (patch)
treef5cd647b887fdebc1fd62c48a1ef7e688dbe6f23 /src
parent718086f383eab64ebca3c6bd85350cf0802f6040 (diff)
downloadminetest-4964daa5be6e89c0cea51b06c8b9c608b47306c4.tar.gz
minetest-4964daa5be6e89c0cea51b06c8b9c608b47306c4.tar.bz2
minetest-4964daa5be6e89c0cea51b06c8b9c608b47306c4.zip
Possible fix to bases of islands/hills getting culled out too early
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 6ba33288d..d4eefc737 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;