summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-11-24 13:44:15 +0100
committerMattes D <github@xoft.cz>2014-11-24 13:44:15 +0100
commit3e068a01a802363ca8cebb9a2e850916023665f5 (patch)
treea0f5cf0e837fd5eff94ef39a0723aaa8c70bcaa3
parentcWorld: Rewritten spawn preparation. (diff)
downloadcuberite-3e068a01a802363ca8cebb9a2e850916023665f5.tar
cuberite-3e068a01a802363ca8cebb9a2e850916023665f5.tar.gz
cuberite-3e068a01a802363ca8cebb9a2e850916023665f5.tar.bz2
cuberite-3e068a01a802363ca8cebb9a2e850916023665f5.tar.lz
cuberite-3e068a01a802363ca8cebb9a2e850916023665f5.tar.xz
cuberite-3e068a01a802363ca8cebb9a2e850916023665f5.tar.zst
cuberite-3e068a01a802363ca8cebb9a2e850916023665f5.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 1a64105c2..001ea72c7 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -117,7 +117,7 @@ public:
for (int i = 0; i < maxQueue; i++)
{
int chunkX, chunkZ;
- decodeChunkCoords(i, chunkX, chunkZ);
+ DecodeChunkCoords(i, chunkX, chunkZ);
m_World.GetLightingThread().QueueChunk(chunkX, chunkZ, this);
} // for i
@@ -170,7 +170,7 @@ protected:
if (m_NextIdx < m_MaxIdx)
{
int chunkX, chunkZ;
- decodeChunkCoords(m_NextIdx, chunkX, chunkZ);
+ DecodeChunkCoords(m_NextIdx, chunkX, chunkZ);
m_World.GetLightingThread().QueueChunk(chunkX, chunkZ, this);
m_NextIdx += 1;
}
@@ -191,7 +191,7 @@ protected:
/** Decodes the index into chunk coords. Provides the specific chunk ordering. */
- void decodeChunkCoords(int a_Idx, int & a_ChunkX, int & a_ChunkZ)
+ void DecodeChunkCoords(int a_Idx, int & a_ChunkX, int & a_ChunkZ)
{
// A zigzag pattern from the top to bottom, each row alternating between forward-x and backward-x:
int z = a_Idx / m_PrepareDistance;