diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2022-09-26 13:24:16 -0400 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2022-09-26 13:24:16 -0400 |
commit | 8852ce1af9dab238bc7d3bd5fda39274ed80b959 (patch) | |
tree | 13368d6380ea6fd7c7ec9059094ec4dc9a65604b /src/first_app.cpp | |
parent | multichunk meshing (diff) | |
download | minecraftvulkan-8852ce1af9dab238bc7d3bd5fda39274ed80b959.tar.gz minecraftvulkan-8852ce1af9dab238bc7d3bd5fda39274ed80b959.tar.bz2 minecraftvulkan-8852ce1af9dab238bc7d3bd5fda39274ed80b959.zip |
fixed chunk meshing due to using unsigned int
Diffstat (limited to 'src/first_app.cpp')
-rwxr-xr-x | src/first_app.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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(); |