diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-28 13:11:14 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-28 13:11:14 +0100 |
commit | 013ae71c871c81437a1bad197e0bf7481d02b4a6 (patch) | |
tree | 13191934b88edd6d8ecaab43c82425c5dd719264 /source/cChunk.cpp | |
parent | Implemented synchronous chunk loading; optimized cChunkStay interface for speed (though still unused ;) (diff) | |
download | cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.tar cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.tar.gz cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.tar.bz2 cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.tar.lz cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.tar.xz cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.tar.zst cuberite-013ae71c871c81437a1bad197e0bf7481d02b4a6.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cChunk.cpp | 16 |
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;
}
|