diff options
author | Mattes D <github@xoft.cz> | 2014-11-04 15:45:08 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-04 15:45:08 +0100 |
commit | 6201b3602c2f82fd9de68404a9e742c9cf3c6554 (patch) | |
tree | e086038a40a07eba6be7a10a18f9cc95527fc729 /src/ChunkMap.cpp | |
parent | Moved the chrono include into Globals. (diff) | |
parent | WebAdmin: Fixed login template destination address. (diff) | |
download | cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.tar cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.tar.gz cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.tar.bz2 cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.tar.lz cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.tar.xz cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.tar.zst cuberite-6201b3602c2f82fd9de68404a9e742c9cf3c6554.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ChunkMap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp index 595040a54..8a8f17a1b 100644 --- a/src/ChunkMap.cpp +++ b/src/ChunkMap.cpp @@ -822,6 +822,7 @@ void cChunkMap::WakeUpSimulatorsInArea(int a_MinBlockX, int a_MaxBlockX, int a_M int MinChunkX, MinChunkZ, MaxChunkX, MaxChunkZ; cChunkDef::BlockToChunk(a_MinBlockX, a_MinBlockZ, MinChunkX, MinChunkZ); cChunkDef::BlockToChunk(a_MaxBlockX, a_MaxBlockZ, MaxChunkX, MaxChunkZ); + cCSLock Lock(m_CSLayers); for (int z = MinChunkZ; z <= MaxChunkZ; z++) { int MinZ = std::max(a_MinBlockZ, z * cChunkDef::Width); |