summaryrefslogtreecommitdiff
path: root/src/engine/M_chunk.c
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2026-01-10 09:54:55 +0200
committerDrNuget <drnuget@outlook.com>2026-01-10 09:54:55 +0200
commit73bcc7283fdb3127b837b048ba426e1f83543cef (patch)
tree757332a08ec472825dea95aba9a1781f2f257aa8 /src/engine/M_chunk.c
parent3a3b64bedc47a0795358c6be7062160f52f2fc3b (diff)
downloadmnm-73bcc7283fdb3127b837b048ba426e1f83543cef.tar.gz
change fps camera values to degrees, limit fps camera pitch between -90,90 degrees, add variable for render distancedev
Diffstat (limited to 'src/engine/M_chunk.c')
-rw-r--r--src/engine/M_chunk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/M_chunk.c b/src/engine/M_chunk.c
index 2227ee9..630e206 100644
--- a/src/engine/M_chunk.c
+++ b/src/engine/M_chunk.c
@@ -5,7 +5,7 @@ void M_generateChunk(M_Chunk *chunk)
for (int x=0;x<M_CHUNK_SIZE;x++)
for (int y=0;y<M_CHUNK_SIZE;y++)
for (int z=0;z<M_CHUNK_SIZE;z++) {
- if (x==M_CHUNK_SIZE) {
+ if (y==M_CHUNK_SIZE/2) {
M_Block block;
M_createBlock(&block, 1);
chunk->blocks[x][y][z] = block;