summaryrefslogtreecommitdiffstats
path: root/src/ChunkStay.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ChunkStay.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ChunkStay.cpp b/src/ChunkStay.cpp
index cce8d5f4d..6b1d5ee34 100644
--- a/src/ChunkStay.cpp
+++ b/src/ChunkStay.cpp
@@ -105,7 +105,7 @@ void cChunkStay::Disable(void)
-void cChunkStay::ChunkAvailable(int a_ChunkX, int a_ChunkZ)
+bool cChunkStay::ChunkAvailable(int a_ChunkX, int a_ChunkZ)
{
// Check if this is a chunk that we want:
bool IsMine = false;
@@ -120,15 +120,16 @@ void cChunkStay::ChunkAvailable(int a_ChunkX, int a_ChunkZ)
} // for itr - m_OutstandingChunks[]
if (!IsMine)
{
- return;
+ return false;
}
// Call the appropriate callbacks:
OnChunkAvailable(a_ChunkX, a_ChunkZ);
if (m_OutstandingChunks.empty())
{
- OnAllChunksAvailable();
+ return OnAllChunksAvailable();
}
+ return false;
}