summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorLars <larsh@apache.org>2020-11-15 22:58:57 -0800
committerlhofhansl <larsh@apache.org>2020-11-26 20:31:20 -0800
commitf1d72d212a0661588be27003069abf4bd8092e55 (patch)
tree86de402f9f11ab96af7b6d37ebbfe3c539226487 /src/map.h
parent9bb381ebd387cd783da8d582949bf284a29d9b3a (diff)
downloadminetest-f1d72d212a0661588be27003069abf4bd8092e55.tar.gz
minetest-f1d72d212a0661588be27003069abf4bd8092e55.tar.bz2
minetest-f1d72d212a0661588be27003069abf4bd8092e55.zip
Avoid generating the same chunk more than once with multiple emerge threads.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index b28f34db3..3bc30c482 100644
--- a/src/map.h
+++ b/src/map.h
@@ -423,6 +423,7 @@ private:
// Chunks
core::map<v2s16, MapChunk*> m_chunks;
#endif
+ std::set<v3s16> m_chunks_in_progress;
/*
Metadata is re-written on disk only if this is true.