summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorHugues Ross <hugues.ross@gmail.com>2020-08-04 14:12:47 -0400
committerGitHub <noreply@github.com>2020-08-04 20:12:47 +0200
commit93ecc589bc49a80187705f6e06df23a71263d3d7 (patch)
treeffb4cacc13843f2b7ef7cb5fcc192c0dfb3816d4 /src/nodedef.h
parentd22fd6fc348ecf393f535c9b172410f4a82a2d52 (diff)
downloadminetest-93ecc589bc49a80187705f6e06df23a71263d3d7.tar.gz
minetest-93ecc589bc49a80187705f6e06df23a71263d3d7.tar.bz2
minetest-93ecc589bc49a80187705f6e06df23a71263d3d7.zip
Implement override.txt support for special tiles (#10140)
Add override targets for all special_tiles entries in node definitions, allowing texture packs to replace these textures. This makes overrides work properly with a variety of drawtypes. The targets are named special1 through special6, covering the the current length of the special_tiles array.
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index ff52f976f..d0da367ee 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -261,6 +261,11 @@ struct TileDef
NodeDrawType drawtype);
};
+// Defines the number of special tiles per nodedef
+//
+// NOTE: When changing this value, the enum entries of OverrideTarget and
+// parser in TextureOverrideSource must be updated so that all special
+// tiles can be overridden.
#define CF_SPECIAL_COUNT 6
struct ContentFeatures