projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bf05f0
)
Dont display interior of glasslike_framed node when its not defined.
author
RealBadAngel
<maciej.kasatkin@o2.pl>
Thu, 24 Jul 2014 18:58:08 +0000
(20:58 +0200)
committer
RealBadAngel
<maciej.kasatkin@o2.pl>
Thu, 24 Jul 2014 18:58:08 +0000
(20:58 +0200)
Fixes https://github.com/minetest/minetest/issues/1514
src/content_mapblock.cpp
patch
|
blob
|
history
diff --git
a/src/content_mapblock.cpp
b/src/content_mapblock.cpp
index 7708d0e76f70675b22e44411298c5cc23a692f1c..f5b49c662e77d6dd8bb62330267d9ded9d8add58 100644
(file)
--- a/
src/content_mapblock.cpp
+++ b/
src/content_mapblock.cpp
@@
-946,7
+946,7
@@
void mapblock_mesh_generate_special(MeshMakeData *data,
makeCuboid(&collector, box, &glass_tiles[i], 1, c, txc2);
}
- if (param2 > 0
)
{
+ if (param2 > 0
&& f.special_tiles[0].texture)
{
// Interior volume level is in range 0 .. 63,
// convert it to -0.5 .. 0.5
float vlev = (((float)param2 / 63.0 ) * 2.0 - 1.0);