summaryrefslogtreecommitdiffstats
path: root/src/SpawnPrepare.cpp
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-12-19 22:48:19 +0100
committerMattes D <github@xoft.cz>2015-12-20 00:56:55 +0100
commitd4289eee3c0e282459ca0301efe15a475c6c5fda (patch)
tree30dd68a59171a856782cd5732d1527fdeec78cc0 /src/SpawnPrepare.cpp
parentMerge pull request #2779 from cuberite/seadragon91-patch-clang-3.7 (diff)
downloadcuberite-d4289eee3c0e282459ca0301efe15a475c6c5fda.tar
cuberite-d4289eee3c0e282459ca0301efe15a475c6c5fda.tar.gz
cuberite-d4289eee3c0e282459ca0301efe15a475c6c5fda.tar.bz2
cuberite-d4289eee3c0e282459ca0301efe15a475c6c5fda.tar.lz
cuberite-d4289eee3c0e282459ca0301efe15a475c6c5fda.tar.xz
cuberite-d4289eee3c0e282459ca0301efe15a475c6c5fda.tar.zst
cuberite-d4289eee3c0e282459ca0301efe15a475c6c5fda.zip
Diffstat (limited to 'src/SpawnPrepare.cpp')
-rw-r--r--src/SpawnPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SpawnPrepare.cpp b/src/SpawnPrepare.cpp
index 9f1e645b1..ba9fc1117 100644
--- a/src/SpawnPrepare.cpp
+++ b/src/SpawnPrepare.cpp
@@ -119,7 +119,7 @@ void cSpawnPrepare::PreparedChunkCallback(int a_ChunkX, int a_ChunkZ)
float PercentDone = static_cast<float>(m_NumPrepared * 100) / m_MaxIdx;
float ChunkSpeed = static_cast<float>((m_NumPrepared - m_LastReportChunkCount) * 1000) / std::chrono::duration_cast<std::chrono::milliseconds>(Now - m_LastReportTime).count();
LOG("Preparing spawn (%s): %.02f%% (%d/%d; %.02f chunks / sec)",
- m_World.GetName().c_str(), PercentDone, m_NumPrepared, m_MaxIdx, ChunkSpeed
+ m_World.GetName().c_str(), PercentDone, m_NumPrepared.load(std::memory_order_seq_cst), m_MaxIdx, ChunkSpeed
);
m_LastReportTime = Now;
m_LastReportChunkCount = m_NumPrepared;