From 4f700e3457f2c7dd48840cb271df23e104fdccdd Mon Sep 17 00:00:00 2001 From: chelsea Date: Tue, 2 Dec 2025 22:51:05 -0600 Subject: [PATCH] Increase trail anchors and extend cabin path search --- worldgen-c/bin/worldgen | Bin 140064 -> 140064 bytes worldgen-c/src/worldgen.c | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/worldgen-c/bin/worldgen b/worldgen-c/bin/worldgen index 526d8560ac30dc5c09e6379c719a5fd53fda8ce6..0c78795e2cbc3b9d19e8c79b2cce6ada4ba6c9fc 100755 GIT binary patch delta 166 zcmV;X09pT_#t5Ls2(XX?6fwT>ra~)7S`p3dchDAhFPr%Q#Dk;*x1<9B1WpNfL;>JX zL2Jc$x3N(HRRjUSw+B`McLV_emw#FT9Tfop07!|$NQs3Q|NsB!650O$zW@Wbv04Ed z10Fy*oizXd{|}9b{r~@iy+Hr}|6dP}JX zL2JcOx3N(HRRjTnw+B`McLV_dmw#FT9Tflo07!|$NQs3Q|NsB!650O$zW@QZv04Ed z10G;GoizXd{|}9b{r~@iy+Hr}{~r&Jtrail_segment_count = 0; ctx->trail_segment_cap = 0; - const int step = 96; - const int max_points = 32; - const double min_spacing = 160.0; + const int step = 64; + const int max_points = 96; + const double min_spacing = 96.0; int cap = max_points; int count = 0; int *px = (int *)malloc((size_t)cap * sizeof(int)); @@ -2207,11 +2207,11 @@ static void connect_cabin_to_trail(worldgen_ctx *ctx, int chunk_x, int chunk_z, found = find_nearest_trail_point_from_segments(ctx, start_x, start_z, &target_x, &target_z); } if (!found) { - found = find_nearest_trail_block(columns, chunk, chunk_x, chunk_z, start_x, start_z, 128, &target_x, &target_z); + found = find_nearest_trail_block(columns, chunk, chunk_x, chunk_z, start_x, start_z, 192, &target_x, &target_z); } if (!found) { - int fallback_x = start_x + step_x * 80; - int fallback_z = start_z + step_z * 80; + int fallback_x = start_x + step_x * 120; + int fallback_z = start_z + step_z * 120; carve_trail_span(ctx, chunk_x, chunk_z, chunk, columns, start_x, start_z, fallback_x, fallback_z, path_width); return; }