summaryrefslogtreecommitdiff
path: root/Occlusion_Test.cpp
diff options
context:
space:
mode:
authorJapa Illo2012-03-15 12:53:19 +0100
committerJapa Illo2012-03-15 12:53:19 +0100
commit1bd9b2a540e52795cd3a9fbc402a1ee9736e1b70 (patch)
tree5a07fe3d331f690950327d0923e61bb78e3b7cc1 /Occlusion_Test.cpp
parent42de27ed582314bfb08fbf4ae61f6bdd8fb5fb8f (diff)
downloadstonesense-1bd9b2a540e52795cd3a9fbc402a1ee9736e1b70.tar.gz
stonesense-1bd9b2a540e52795cd3a9fbc402a1ee9736e1b70.tar.bz2
stonesense-1bd9b2a540e52795cd3a9fbc402a1ee9736e1b70.tar.xz
Got dyes to be detected properly. Also made the equipment drawing far neater.
Removed zoom in smoothing. it just looks bad. Signed-off-by: Japa Illo <japa.mala.illo@gmail.com>
Diffstat (limited to 'Occlusion_Test.cpp')
-rw-r--r--Occlusion_Test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Occlusion_Test.cpp b/Occlusion_Test.cpp
index 59494f9..7c8061e 100644
--- a/Occlusion_Test.cpp
+++ b/Occlusion_Test.cpp
@@ -43,7 +43,7 @@ void mask_center(Block * b, int offset)
return;
if(!is_block_solid(b))
return;
- if(b->tileShapeBasic==tiletype_shape_basic::Wall && b->tileMaterial != tiletype_shape::BROOK_BED)
+ if(b->tileShapeBasic==tiletype_shape_basic::Wall && b->tileMaterial != tiletype_material::BROOK)
{
if(offset >= 0)
{
@@ -57,10 +57,10 @@ void mask_center(Block * b, int offset)
}
}
else if(
- b->tileShapeBasic==tiletype_shape_basic::Floor ||
- b->tileShapeBasic==tiletype_shape_basic::Ramp ||
- b->tileMaterial != tiletype_shape::BROOK_BED
- )
+ (b->tileShapeBasic==tiletype_shape_basic::Floor ||
+ b->tileShapeBasic==tiletype_shape_basic::Ramp) &&
+ b->tileMaterial != tiletype_material::BROOK
+ ) //this needs to ignore brooks. This may have been a bug.
{
if(offset >= 0)
{