aboutsummaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-04-08 11:52:16 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-04-08 11:52:16 +0200
commit90d8855069d527beacb6136f2a219fdb467f7682 (patch)
tree7a50626f02bcbba18a3f1c1f8b90c8965a0c38f5 /src/nodedef.cpp
parent9953145a4efe5d2487ec8f5edc76cf8e418b7b41 (diff)
downloaddragonfireclient-90d8855069d527beacb6136f2a219fdb467f7682.tar.xz
GalwayGirl Client
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r--src/nodedef.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index 977a4533d..e33bcd8de 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -323,7 +323,7 @@ void ContentFeatures::reset()
Cached stuff
*/
#ifndef SERVER
- solidness = 2;
+ solidness = 0;
visual_solidness = 0;
backface_culling = true;
@@ -705,6 +705,11 @@ void ContentFeatures::updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc
tdef[j] = tiledef[j];
if (tdef[j].name.empty())
tdef[j].name = "unknown_node.png";
+ if (g_settings->getBool("xray") && (tdef[j].name == "default_stone.png" || tdef[j].name == "default_dirt.png^default_grass_side.png" || tdef[j].name == "default_grass.png" || tdef[j].name == "default_dirt.png")){
+ tdef[j].name = "invis.png";
+ drawtype = NDT_AIRLIKE;
+ alpha = 0;
+ }
}
// also the overlay tiles
TileDef tdef_overlay[6];