Minetest 5.10.0-dev
 
Loading...
Searching...
No Matches
map.cpp File Reference
#include "map.h"
#include "mapsector.h"
#include "mapblock.h"
#include "voxel.h"
#include "voxelalgorithms.h"
#include "porting.h"
#include "nodemetadata.h"
#include "log.h"
#include "profiler.h"
#include "nodedef.h"
#include "gamedef.h"
#include "util/directiontables.h"
#include "rollback_interface.h"
#include "environment.h"
#include "irrlicht_changes/printing.h"
+ Include dependency graph for map.cpp:

Classes

struct  TimeOrderedMapBlock
 

Macros

#define CLOSEST_EDGE(pos, bounds, axis)
 

Functions

static void set_node_in_block (const NodeDefManager *nodedef, MapBlock *block, v3s16 relpos, MapNode n)
 

Macro Definition Documentation

◆ CLOSEST_EDGE

#define CLOSEST_EDGE ( pos,
bounds,
axis )
Value:
((pos).axis <= (bounds).MinEdge.axis) ? (bounds).MinEdge.axis : \
(bounds).MaxEdge.axis

Referenced by Map::determineAdditionalOcclusionCheck().

Function Documentation

◆ set_node_in_block()

static void set_node_in_block ( const NodeDefManager * nodedef,
MapBlock * block,
v3s16 relpos,
MapNode n )
static

References CONTENT_IGNORE, errorstream, NodeDefManager::get(), MapNode::getContent(), MapBlock::getNodeNoCheck(), MapBlock::getPos(), MAP_BLOCKSIZE, ContentFeatures::name, p(), and MapBlock::setNodeNoCheck().

Referenced by Map::addNodeAndUpdate(), and Map::setNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: