summaryrefslogtreecommitdiffstats
path: root/src/ChunkData.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-05-25 19:26:10 +0200
committerTycho <work.tycho+git@gmail.com>2014-05-25 19:26:10 +0200
commit2a7d199df68d11f6fd1fa2b4186faa00d0e81676 (patch)
treed3dd701b8a582322da4d8ad0d5c7b777f02c926b /src/ChunkData.cpp
parentMerge branch 'chunksparsing/structs' into AllocationPool (diff)
downloadcuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.tar
cuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.tar.gz
cuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.tar.bz2
cuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.tar.lz
cuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.tar.xz
cuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.tar.zst
cuberite-2a7d199df68d11f6fd1fa2b4186faa00d0e81676.zip
Diffstat (limited to 'src/ChunkData.cpp')
-rw-r--r--src/ChunkData.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ChunkData.cpp b/src/ChunkData.cpp
index 1bc3072c2..99421bc33 100644
--- a/src/ChunkData.cpp
+++ b/src/ChunkData.cpp
@@ -242,7 +242,7 @@ NIBBLETYPE cChunkData::GetSkyLight(int a_RelX, int a_RelY, int a_RelZ) const
cChunkData cChunkData::Copy() const
{
cChunkData copy(m_Pool);
- for (int i = 0; i < CHUNK_SECTION_NUM; i++)
+ for (size_t i = 0; i < CHUNK_SECTION_COUNT; i++)
{
if (m_Sections[i] != NULL)
{
@@ -432,7 +432,7 @@ void cChunkData::SetBlocks(const BLOCKTYPE * a_src)
void cChunkData::SetMeta(const NIBBLETYPE * a_src)
{
- for (size_t i = 0; i < CHUNK_SECTION_NUM; i++)
+ for (size_t i = 0; i < CHUNK_SECTION_COUNT; i++)
{
const size_t segment_length = CHUNK_SECTION_HEIGHT * 16 * 16 / 2;
if (m_Sections[i] != NULL)
@@ -484,10 +484,10 @@ void cChunkData::SetMeta(const NIBBLETYPE * a_src)
-void cChunkData::SetLight(const NIBBLETYPE * a_src)
+void cChunkData::SetBlockLight(const NIBBLETYPE * a_src)
{
if (!a_src) return;
- for (size_t i = 0; i < CHUNK_SECTION_NUM; i++)
+ for (size_t i = 0; i < CHUNK_SECTION_COUNT; i++)
{
const size_t segment_length = CHUNK_SECTION_HEIGHT * 16 * 16 / 2;
if (m_Sections[i] != NULL)
@@ -542,7 +542,7 @@ void cChunkData::SetLight(const NIBBLETYPE * a_src)
void cChunkData::SetSkyLight (const NIBBLETYPE * a_src)
{
if (!a_src) return;
- for (size_t i = 0; i < CHUNK_SECTION_NUM; i++)
+ for (size_t i = 0; i < CHUNK_SECTION_COUNT; i++)
{
const size_t segment_length = CHUNK_SECTION_HEIGHT * 16 * 16 / 2;
if (m_Sections[i] != NULL)