summaryrefslogtreecommitdiff
path: root/src/first_app.cpp
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-09-26 13:24:16 -0400
committerTyler Murphy <tylermurphy534@gmail.com>2022-09-26 13:24:16 -0400
commit8852ce1af9dab238bc7d3bd5fda39274ed80b959 (patch)
tree13368d6380ea6fd7c7ec9059094ec4dc9a65604b /src/first_app.cpp
parentmultichunk meshing (diff)
downloadminecraftvulkan-8852ce1af9dab238bc7d3bd5fda39274ed80b959.tar.gz
minecraftvulkan-8852ce1af9dab238bc7d3bd5fda39274ed80b959.tar.bz2
minecraftvulkan-8852ce1af9dab238bc7d3bd5fda39274ed80b959.zip
fixed chunk meshing due to using unsigned int
Diffstat (limited to '')
-rwxr-xr-xsrc/first_app.cpp8
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();