summaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r--src/nodedef.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index bb4f102da..c9c461b20 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -1012,7 +1012,9 @@ void CNodeDefManager::fillTileAttribs(ITextureSource *tsrc, TileSpec *tile,
if (use_normal_texture) {
tile->normal_texture = tsrc->getNormalTexture(tiledef->name);
}
- tile->flags_texture = tsrc->getShaderFlagsTexture(tiledef, tile);
+ tile->flags_texture = tsrc->getShaderFlagsTexture(
+ tile->normal_texture ? true : false,
+ tiledef->tileable_horizontal, tiledef->tileable_vertical);
// Material flags
tile->material_flags = 0;