summaryrefslogtreecommitdiff
path: root/MapLoading.cpp
diff options
context:
space:
mode:
authorCaldfir2012-04-17 18:58:09 -0700
committerCaldfir2012-04-17 18:58:09 -0700
commit24e538eeec0c966be264f47174b329f086ce51f2 (patch)
treecb6c96430ad23fb2a4904b2b73c9edc0040f55cc /MapLoading.cpp
parentbd888a3cdc6fe40ade5ba2f8b103c1151fb1c8cc (diff)
downloadstonesense-24e538eeec0c966be264f47174b329f086ce51f2.tar.gz
stonesense-24e538eeec0c966be264f47174b329f086ce51f2.tar.bz2
stonesense-24e538eeec0c966be264f47174b329f086ce51f2.tar.xz
Made a less-aggressive version of the occlusion cull (only attempts to cull hidden blocks).
Diffstat (limited to 'MapLoading.cpp')
-rw-r--r--MapLoading.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/MapLoading.cpp b/MapLoading.cpp
index 0b60284..d1ea9ec 100644
--- a/MapLoading.cpp
+++ b/MapLoading.cpp
@@ -849,7 +849,9 @@ void beautify_Segment(WorldSegment * segment)
for(uint32_t i=0; i < numblocks; i++){
Block* b = segment->getBlock(i);
- if(config.occlusion)
+ if(config.occlusion == 1)
+ occlude_block(b);
+ else if(config.occlusion == 2 && b->designation.bits.hidden)
occlude_block(b);
if(!b->visible)