diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-13 10:57:55 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:40 +0200 |
commit | 64996422c00ddb70cfc8aee7da7b62485b8b0416 (patch) | |
tree | fdaa59ba3c52069f8935cf5d8d1cd63752edb149 /src/content_mapnode.h | |
parent | f8c9b703798873c6e958560341105069dca8f86c (diff) | |
download | minetest-64996422c00ddb70cfc8aee7da7b62485b8b0416.tar.gz minetest-64996422c00ddb70cfc8aee7da7b62485b8b0416.tar.bz2 minetest-64996422c00ddb70cfc8aee7da7b62485b8b0416.zip |
Move ContentFeatures to mapnode_contentfeatures.{h,cpp} and clean stuff
Diffstat (limited to 'src/content_mapnode.h')
-rw-r--r-- | src/content_mapnode.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/content_mapnode.h b/src/content_mapnode.h index 4090f76f4..b58119724 100644 --- a/src/content_mapnode.h +++ b/src/content_mapnode.h @@ -22,10 +22,22 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "mapnode.h" +/* + Fills stuff to the global ContentFeatures lookup table. + + This accesses g_texturesource; if it is non-NULL, textures are set + for the nodes. + + Client first calls this with g_texturesource=NULL to run some + unit tests and stuff, then it runs this again with g_texturesource + defined to get the textures. + + Server only calls this once with g_texturesource=NULL. +*/ void content_mapnode_init(); +// Backwards compatibility for non-extended content types in v19 extern content_t trans_table_19[21][2]; - MapNode mapnode_translate_from_internal(MapNode n_from, u8 version); MapNode mapnode_translate_to_internal(MapNode n_from, u8 version); |