diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-04-05 13:47:16 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-04-05 13:47:16 +0200 |
commit | a6b0c74f79dc6654b67b20c5c77965dccc044412 (patch) | |
tree | 555e9d4c2a7c337df931bea567f47d0aef0c6fd8 /src/ChunkMap.cpp | |
parent | Merge pull request #3121 from LogicParrot/loops (diff) | |
parent | Improved player freeze code (diff) | |
download | cuberite-a6b0c74f79dc6654b67b20c5c77965dccc044412.tar cuberite-a6b0c74f79dc6654b67b20c5c77965dccc044412.tar.gz cuberite-a6b0c74f79dc6654b67b20c5c77965dccc044412.tar.bz2 cuberite-a6b0c74f79dc6654b67b20c5c77965dccc044412.tar.lz cuberite-a6b0c74f79dc6654b67b20c5c77965dccc044412.tar.xz cuberite-a6b0c74f79dc6654b67b20c5c77965dccc044412.tar.zst cuberite-a6b0c74f79dc6654b67b20c5c77965dccc044412.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ChunkMap.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp index 629acb341..156d93e2f 100644 --- a/src/ChunkMap.cpp +++ b/src/ChunkMap.cpp @@ -2920,8 +2920,9 @@ void cChunkMap::cChunkLayer::Tick(std::chrono::milliseconds a_Dt) { for (size_t i = 0; i < ARRAYCOUNT(m_Chunks); i++) { - // Only tick chunks that are valid and should be ticked: - if ((m_Chunks[i] != nullptr) && m_Chunks[i]->IsValid() && m_Chunks[i]->ShouldBeTicked()) + // Only tick chunks that should be ticked: + // Note that chunks that are not IsValid() will only tick players and then bailout + if ((m_Chunks[i] != nullptr) && m_Chunks[i]->ShouldBeTicked()) { m_Chunks[i]->Tick(a_Dt); } |