From 013ae71c871c81437a1bad197e0bf7481d02b4a6 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 28 Feb 2012 12:11:14 +0000 Subject: Chunk now has an indicator of load failure; Chunk generator uses cChunkStay git-svn-id: http://mc-server.googlecode.com/svn/trunk@337 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChunk.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source/cChunk.cpp') 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; } -- cgit v1.2.3