summaryrefslogtreecommitdiff
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/world.c b/src/world.c
index e81f100..72a0c21 100644
--- a/src/world.c
+++ b/src/world.c
@@ -7,8 +7,9 @@ int world_init(int32_t seed, struct world** world) {
struct world* wld = malloc(sizeof(struct world));
memset(wld, 0, sizeof(struct world));
wld->seed = seed;
- for (int i = 0; i < WORLD_WIDTH; i++) {
- for (int j = 0; j < WORLD_LENGTH; j++) {
+ //TODO: Improve loading here
+ for (int i = 0; i < 2; i++) {
+ for (int j = 0; j < 2; j++) {
struct chunk* chunk;
vec2 coords = { i, j };
chunk_gen(wld, coords, &chunk);