summaryrefslogtreecommitdiff
path: root/src/content_mapnode.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-07-23 07:20:13 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-07-23 08:18:39 +0300
commitfd845f27f5b3e3c6587c472be76235567a7b934d (patch)
tree53915de3f1c512e0e4ec8d29cd42160a9af5e826 /src/content_mapnode.cpp
parentea62ee4b61371107ef3d693bda4c410ba02ca7e6 (diff)
downloadminetest-fd845f27f5b3e3c6587c472be76235567a7b934d.tar.gz
minetest-fd845f27f5b3e3c6587c472be76235567a7b934d.tar.bz2
minetest-fd845f27f5b3e3c6587c472be76235567a7b934d.zip
Fix map deserialization and remove old serialization code
Diffstat (limited to 'src/content_mapnode.cpp')
-rw-r--r--src/content_mapnode.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/content_mapnode.cpp b/src/content_mapnode.cpp
index 410aaa911..c3fdb4a42 100644
--- a/src/content_mapnode.cpp
+++ b/src/content_mapnode.cpp
@@ -102,23 +102,6 @@ content_t trans_table_19[21][2] = {
{CONTENT_BOOKSHELF, 29},
};
-MapNode mapnode_translate_from_internal(MapNode n_from, u8 version)
-{
- MapNode result = n_from;
- if(version <= 19)
- {
- content_t c_from = n_from.getContent();
- for(u32 i=0; i<sizeof(trans_table_19)/sizeof(trans_table_19[0]); i++)
- {
- if(trans_table_19[i][0] == c_from)
- {
- result.setContent(trans_table_19[i][1]);
- break;
- }
- }
- }
- return result;
-}
MapNode mapnode_translate_to_internal(MapNode n_from, u8 version)
{
MapNode result = n_from;