diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-16 13:03:28 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:46 +0200 |
commit | c0f6395cf09f658eb95365c60f67b8a89104cb23 (patch) | |
tree | 045d2e1713acc39948280b9ca29dc474b8807418 /src/mapnode.cpp | |
parent | 50d63e4b0ac15ded5a9fb684586a88a91366d067 (diff) | |
download | minetest-c0f6395cf09f658eb95365c60f67b8a89104cb23.tar.gz minetest-c0f6395cf09f658eb95365c60f67b8a89104cb23.tar.bz2 minetest-c0f6395cf09f658eb95365c60f67b8a89104cb23.zip |
Node definition names
Diffstat (limited to 'src/mapnode.cpp')
-rw-r--r-- | src/mapnode.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp index 2fbc81dd2..c5756e8ba 100644 --- a/src/mapnode.cpp +++ b/src/mapnode.cpp @@ -268,7 +268,7 @@ void MapNode::serialize(u8 *dest, u8 version) dest[2] = n_foreign.param2; } } -void MapNode::deSerialize(u8 *source, u8 version, INodeDefManager *nodemgr) +void MapNode::deSerialize(u8 *source, u8 version) { if(!ser_ver_supported(version)) throw VersionMismatchException("ERROR: MapNode format not supported"); @@ -280,11 +280,6 @@ void MapNode::deSerialize(u8 *source, u8 version, INodeDefManager *nodemgr) else if(version == 1) { param0 = source[0]; - // This version doesn't support saved lighting - if(nodemgr->get(*this).light_propagates || nodemgr->get(*this).light_source > 0) - param1 = 0; - else - param1 = source[1]; } else if(version <= 9) { |