1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

remove content_* things from map.cpp

This commit is contained in:
darkrose 2011-09-23 18:04:48 +10:00
parent 79cb754358
commit 8b875d71d1
3 changed files with 6 additions and 16 deletions

View file

@ -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,