summaryrefslogtreecommitdiff
path: root/src/voxel.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-06-25 04:25:14 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-06-25 04:25:14 +0300
commit7538b4c6201675c566c98b21c8ecddb798a14943 (patch)
treee61cbdb7c2d9fedd41e2793860aa26553c545f56 /src/voxel.h
parent47e4eda4bb87cd9dc20dddf81ca473b523eeb150 (diff)
downloadminetest-7538b4c6201675c566c98b21c8ecddb798a14943.tar.gz
minetest-7538b4c6201675c566c98b21c8ecddb798a14943.tar.bz2
minetest-7538b4c6201675c566c98b21c8ecddb798a14943.zip
New map generator added (and SQLite, messed up the commits at that time...) (import from temporary git repo)
Diffstat (limited to 'src/voxel.h')
-rw-r--r--src/voxel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/voxel.h b/src/voxel.h
index 2e8015eb1..6d1a318f1 100644
--- a/src/voxel.h
+++ b/src/voxel.h
@@ -384,6 +384,14 @@ public:
return m_data[m_area.index(p)];
}
+ MapNode getNodeNoExNoEmerge(v3s16 p)
+ {
+ if(m_area.contains(p) == false)
+ return MapNode(CONTENT_IGNORE);
+ if(m_flags[m_area.index(p)] & VOXELFLAG_INEXISTENT)
+ return MapNode(CONTENT_IGNORE);
+ return m_data[m_area.index(p)];
+ }
MapNode & getNodeRef(v3s16 p)
{
emerge(p);