From 7538b4c6201675c566c98b21c8ecddb798a14943 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 25 Jun 2011 04:25:14 +0300 Subject: New map generator added (and SQLite, messed up the commits at that time...) (import from temporary git repo) --- src/voxel.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/voxel.h') 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); -- cgit v1.2.3