summaryrefslogtreecommitdiffstats
path: root/src/ChunkBuffer.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-05-11 16:52:02 +0200
committerTycho <work.tycho+git@gmail.com>2014-05-11 16:52:02 +0200
commit9278bb732d115251776b12ebb45d0192c7fdd916 (patch)
tree9bf320318f9f31f7198ad7d820f9cad44fdc6963 /src/ChunkBuffer.cpp
parentCoverage builds are called MCServer not MCServer_debug (diff)
downloadcuberite-9278bb732d115251776b12ebb45d0192c7fdd916.tar
cuberite-9278bb732d115251776b12ebb45d0192c7fdd916.tar.gz
cuberite-9278bb732d115251776b12ebb45d0192c7fdd916.tar.bz2
cuberite-9278bb732d115251776b12ebb45d0192c7fdd916.tar.lz
cuberite-9278bb732d115251776b12ebb45d0192c7fdd916.tar.xz
cuberite-9278bb732d115251776b12ebb45d0192c7fdd916.tar.zst
cuberite-9278bb732d115251776b12ebb45d0192c7fdd916.zip
Diffstat (limited to '')
-rw-r--r--src/ChunkBuffer.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ChunkBuffer.cpp b/src/ChunkBuffer.cpp
index baeeff890..96077b966 100644
--- a/src/ChunkBuffer.cpp
+++ b/src/ChunkBuffer.cpp
@@ -295,3 +295,14 @@ void cChunkBuffer::Free(cChunkBuffer::sChunkSection * ptr) const
+void cChunkBuffer::ZeroSection(cChunkBuffer::sChunkSection * ptr) const
+{
+ memset(ptr->m_BlockTypes,0x00,sizeof(ptr->m_BlockTypes));
+ memset(ptr->m_BlockMeta,0x00,sizeof(ptr->m_BlockMeta));
+ memset(ptr->m_BlockLight,0x00,sizeof(ptr->m_BlockLight));
+ memset(ptr->m_BlockSkyLight,0x00,sizeof(ptr->m_BlockSkyLight));
+}
+
+
+
+