diff --git a/ScuffedMinecraft/src/Planet.cpp b/ScuffedMinecraft/src/Planet.cpp index 8d1eb87..d251d90 100644 --- a/ScuffedMinecraft/src/Planet.cpp +++ b/ScuffedMinecraft/src/Planet.cpp @@ -6,6 +6,8 @@ Planet* Planet::planet = nullptr; +const unsigned int Planet::chunkSize = 32; + // Public Planet::Planet(Shader* solidShader, Shader* waterShader, Shader* billboardShader) : solidShader(solidShader), waterShader(waterShader), billboardShader(billboardShader) diff --git a/ScuffedMinecraft/src/Planet.h b/ScuffedMinecraft/src/Planet.h index ad39d0a..93daad5 100644 --- a/ScuffedMinecraft/src/Planet.h +++ b/ScuffedMinecraft/src/Planet.h @@ -25,7 +25,7 @@ public: public: static Planet* planet; unsigned int numChunks = 0, numChunksRendered = 0; - static const unsigned int chunkSize = 32; + static const unsigned int chunkSize; private: std::unordered_map, Chunk> chunks;