From 8852ce1af9dab238bc7d3bd5fda39274ed80b959 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Mon, 26 Sep 2022 13:24:16 -0400 Subject: fixed chunk meshing due to using unsigned int --- src/first_app.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/first_app.cpp') diff --git a/src/first_app.cpp b/src/first_app.cpp index a16ecde..561b693 100755 --- a/src/first_app.cpp +++ b/src/first_app.cpp @@ -46,14 +46,14 @@ void FirstApp::run() { void FirstApp::loadGameObjects() { - for(int x = 0; x < 10; x++) { - for(int z = 0; z < 10; z++) { + for(int32_t x = 0; x < 10; x++) { + for(int32_t z = 0; z < 10; z++) { Chunk* chunk = Chunk::newChunk(x, z, 53463); } } - for(int x = 0; x < 10; x++) { - for(int z = 0; z < 10; z++) { + for(int32_t x = 0; x < 10; x++) { + for(int32_t z = 0; z < 10; z++) { Chunk* chunk = Chunk::getChunk(x,z); chunk->createMesh(); -- cgit v1.2.3-freya