summaryrefslogtreecommitdiffstats
path: root/source/cChunk.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cChunk.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/cChunk.cpp b/source/cChunk.cpp
index 14f99c1d9..476f829d7 100644
--- a/source/cChunk.cpp
+++ b/source/cChunk.cpp
@@ -204,6 +204,20 @@ void cChunk::MarkLoaded(void)
+void cChunk::MarkLoadFailed(void)
+{
+ if (m_IsValid)
+ {
+ return;
+ }
+
+ m_HasLoadFailed = true;
+}
+
+
+
+
+
void cChunk::GetAllData(cChunkDataCallback * a_Callback)
{
a_Callback->BlockData(m_BlockData);
@@ -262,6 +276,8 @@ void cChunk::SetAllData(const char * a_BlockData, cEntityList & a_Entities, cBlo
CreateBlockEntities();
CalculateHeightmap();
+
+ m_HasLoadFailed = false;
}