summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authordarkrose <lisa@ltmnet.com>2011-09-23 18:04:48 +1000
committerdarkrose <lisa@ltmnet.com>2011-09-23 18:04:48 +1000
commit8b875d71d1ab928e9866914b886ff58cf8a38192 (patch)
tree7d200674fc3f668e85670b3158cf23471b50004c /src/map.cpp
parent79cb754358691e170c87457b2da60f6e6900f517 (diff)
downloadminetest-8b875d71d1ab928e9866914b886ff58cf8a38192.tar.gz
minetest-8b875d71d1ab928e9866914b886ff58cf8a38192.tar.bz2
minetest-8b875d71d1ab928e9866914b886ff58cf8a38192.zip
remove content_* things from map.cpp
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/map.cpp b/src/map.cpp
index a8e7235cf..32675f08d 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -28,8 +28,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "porting.h"
#include "mapgen.h"
#include "nodemetadata.h"
-#include "content_nodemeta.h"
-#include "content_mapnode.h"
/*
SQLite format specification:
@@ -1016,20 +1014,9 @@ void Map::addNodeAndUpdate(v3s16 p, MapNode n,
if(meta_proto)
{
NodeMetadata *meta = meta_proto->clone();
- /* lockable chest, insert the owner's name */
- if (meta->typeId() == CONTENT_LOCKABLE_CHEST)
- {
- LockingChestNodeMetadata *lcm = (LockingChestNodeMetadata*)meta;
- lcm->setOwner(player_name);
- }
+ meta->setOwner(player_name);
setNodeMetadata(p, meta);
}
- else if (n.getContent() == CONTENT_LOCKABLE_CHEST)
- {
- LockingChestNodeMetadata *lcm = new LockingChestNodeMetadata();
- lcm->setOwner(player_name);
- setNodeMetadata(p, (NodeMetadata*)lcm);
- }
/*
If node is under sunlight and doesn't let sunlight through,