diff --git a/worldgen-c/bin/worldgen b/worldgen-c/bin/worldgen index 33d4094..d2fa696 100755 Binary files a/worldgen-c/bin/worldgen and b/worldgen-c/bin/worldgen differ diff --git a/worldgen-c/src/main.c b/worldgen-c/src/main.c index ee60e1a..574a672 100644 --- a/worldgen-c/src/main.c +++ b/worldgen-c/src/main.c @@ -769,6 +769,13 @@ int main(int argc, char **argv) { snow_line = sea_level + 38; } + if (!have_rect) { + min_x = center_x - radius; + max_x = center_x + radius; + min_z = center_z - radius; + max_z = center_z + radius; + } + /* Global prepass: compute trails based on target area before threading */ worldgen_init(&pre_ctx, world_seed, sea_level, snow_line); pre_ctx.enable_trails = enable_trails; @@ -781,13 +788,6 @@ int main(int argc, char **argv) { prepass_ready = 1; } - if (!have_rect) { - min_x = center_x - radius; - max_x = center_x + radius; - min_z = center_z - radius; - max_z = center_z + radius; - } - if (ensure_dir(out_dir) != 0) { fprintf(stderr, "Failed to create output directory: %s\n", out_dir); return 1;