From 734030edcb6de727dd6cfe263d96dd180a505687 Mon Sep 17 00:00:00 2001 From: williamistGitHub Date: Fri, 18 Oct 2024 18:24:58 -0400 Subject: [PATCH] fix weird gcc thing (i dont even know) --- ScuffedMinecraft/src/Planet.cpp | 2 ++ ScuffedMinecraft/src/Planet.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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;