Browse Source

fixed already loaded chunks are requested while not moving

Kolja Strohm 1 year ago
parent
commit
dd5d3b1830
3 changed files with 4 additions and 3 deletions
  1. 2 1
      .gitignore
  2. 1 1
      FactoryCraft/Dimension.cpp
  3. 1 1
      FactoryCraft/World.cpp

+ 2 - 1
.gitignore

@@ -263,4 +263,5 @@ __pycache__/
 data/
 Framework.dll
 Network.dll
-KSGClient/Netzwerk/Keys.cpp
+KSGClient/Netzwerk/Keys.cpp
+/enc_temp_folder

+ 1 - 1
FactoryCraft/Dimension.cpp

@@ -173,7 +173,7 @@ void Dimension::removeDistantChunks(Punkt wPos)
     int index = 0;
     for (Chunk* chunk : chunkList)
     {
-        if ((chunk->getCenter() - wPos).getLength() > MAX_VIEW_DISTANCE * 2)
+        if ((chunk->getCenter() - wPos).getLength() > MAX_VIEW_DISTANCE * 3)
             removed.add(index, 0);
         index++;
     }

+ 1 - 1
FactoryCraft/World.cpp

@@ -215,8 +215,8 @@ void World::thread()
         zScreenPtr->unlock();
         update(1);
         Sleep(10);
-        std::cout << "background connection lost\n";
     }
+    std::cout << "background connection lost\n";
 }
 
 Block* World::zBlockAt(Framework::Vec3<int> location) const