1
0

Chunks are now marked as saved

git-svn-id: http://mc-server.googlecode.com/svn/trunk@277 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-02-16 16:50:11 +00:00
parent 44a6fd20c4
commit 415d4eaa68

View File

@ -308,9 +308,17 @@ bool cWorldStorage::SaveOneChunk(void)
} }
HasMore = (m_SaveQueue.size() > 0); HasMore = (m_SaveQueue.size() > 0);
} }
if (ShouldSave && !m_SaveSchema->SaveChunk(Save)) if (ShouldSave)
{ {
LOGWARNING("Cannot save chunk [%d, %d]", Save.m_ChunkX, Save.m_ChunkZ); m_World->MarkChunkSaving(Save.m_ChunkX, 0, Save.m_ChunkZ);
if (m_SaveSchema->SaveChunk(Save))
{
m_World->MarkChunkSaved(Save.m_ChunkX, 0, Save.m_ChunkZ);
}
else
{
LOGWARNING("Cannot save chunk [%d, %d]", Save.m_ChunkX, Save.m_ChunkZ);
}
} }
return HasMore; return HasMore;
} }