aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-09-07 01:19:48 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-09-07 01:19:48 +0300
commit8e26c5c0664bcf140ced8db98e6ed99802a7d9fa (patch)
tree8a62984ea92f89abbfebd1d483554e82df75cb34 /src
parent5c1074aa7d568169ab79574b20cd8978ae95cb36 (diff)
downloadminetest-8e26c5c0664bcf140ced8db98e6ed99802a7d9fa.tar.gz
minetest-8e26c5c0664bcf140ced8db98e6ed99802a7d9fa.tar.bz2
minetest-8e26c5c0664bcf140ced8db98e6ed99802a7d9fa.zip
Add note about trans_table_19.
Diffstat (limited to 'src')
-rw-r--r--src/content_mapnode.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/content_mapnode.cpp b/src/content_mapnode.cpp
index e18112ae4..51f2f9736 100644
--- a/src/content_mapnode.cpp
+++ b/src/content_mapnode.cpp
@@ -36,6 +36,11 @@ void setStoneLikeDiggingProperties(DiggingPropertiesList &list, float toughness)
void setDirtLikeDiggingProperties(DiggingPropertiesList &list, float toughness);
void setWoodLikeDiggingProperties(DiggingPropertiesList &list, float toughness);
+/*
+ A conversion table for backwards compatibility.
+ Maps <=v19 content types to current ones.
+ Should never be touched.
+*/
content_t trans_table_19[21][2] = {
{CONTENT_GRASS, 1},
{CONTENT_TREE, 4},