summaryrefslogtreecommitdiff
path: root/Occlusion_Test.cpp
diff options
context:
space:
mode:
authorJapa2011-08-22 20:01:16 +0000
committerJapa2011-08-22 20:01:16 +0000
commit7cdb77861e637a8957b75c4a2626905019f66fc6 (patch)
tree7be6c3dbf8e1cb7a4dee8329452478345732c169 /Occlusion_Test.cpp
parent0004832ae8b3a24c0de7be661d90a013149306b3 (diff)
downloadstonesense-7cdb77861e637a8957b75c4a2626905019f66fc6.tar.gz
stonesense-7cdb77861e637a8957b75c4a2626905019f66fc6.tar.bz2
stonesense-7cdb77861e637a8957b75c4a2626905019f66fc6.tar.xz
made the occlusion pass skip transparent floors and walls.
Diffstat (limited to 'Occlusion_Test.cpp')
-rw-r--r--Occlusion_Test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Occlusion_Test.cpp b/Occlusion_Test.cpp
index 05f9f7c..7eda812 100644
--- a/Occlusion_Test.cpp
+++ b/Occlusion_Test.cpp
@@ -22,6 +22,12 @@ bitset<2*S_SPRITE_HEIGHT> floor_mask_right;
bool is_block_solid(Block * b)
{
//fixme: glass, etc, needs to return false.
+ if(
+ b->material.type == 3 ||
+ b->material.type == 4 ||
+ b->material.type == 5 ||
+ b->material.type == 6)
+ return false;
return true;
}