aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew I <matttpt@gmail.com>2012-07-28 21:41:32 -0400
committerPerttu Ahola <celeron55@gmail.com>2012-08-31 17:50:12 +0300
commit1d7408a7b866a8948e7913a7e8bac7d608f90fbb (patch)
treed2832d34ed983493677f6efe6adc3e54c0af7849 /src
parent0b1ab41a954e2a2b035888e200d775372a3b394e (diff)
downloadminetest-1d7408a7b866a8948e7913a7e8bac7d608f90fbb.tar.gz
minetest-1d7408a7b866a8948e7913a7e8bac7d608f90fbb.tar.bz2
minetest-1d7408a7b866a8948e7913a7e8bac7d608f90fbb.zip
Fix black display inside opaque water
Opaque water's solidness was being set to 2, like a normal node. When you swim, it is treated like a solid block, and the display goes black. Setting it to 1 like transparent water allows you to see. It looks somewhat awkward when you swim, look up, and see an opaque wall of water (the surface), but there isn't much that can be done about it. If you made the water transparent so it looked good, it would defeat the purpose :) .
Diffstat (limited to 'src')
-rw-r--r--src/nodedef.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index e38061e30..d644dc229 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -556,8 +556,6 @@ public:
f->solidness = 0;
} else {
f->solidness = 1;
- if(f->alpha == 255)
- f->solidness = 2;
f->backface_culling = false;
}
break;