From 79ac47d7697aacf64ecdf86a58fab89018f7f80e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 5 Dec 2026 12:58:36 +0100 Subject: [PATCH] Cut 6: allow high-altitude roof-ridge deflection while keeping below-roof wall guard unconditional --- src/RustToDust.Core/OrbitalDropSystem.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/RustToDust.Core/OrbitalDropSystem.cs b/src/RustToDust.Core/OrbitalDropSystem.cs index eb54964..a7c00a0 100644 --- a/src/RustToDust.Core/OrbitalDropSystem.cs +++ b/src/RustToDust.Core/OrbitalDropSystem.cs @@ -485,14 +485,17 @@ namespace RustToDust.Core if (!sampleNow.IsInsideBuildingFootprint && sampleNext.IsInsideBuildingFootprint && - (!sampleNext.IsBuildingRoof || !pod.AllowFlatRoofLanding)) + !sampleNext.IsBuildingRoof) { return true; } - if (!pod.AllowFlatRoofLanding && + bool lowOverNextRoof = pod.Phase == OrbitalPodPhase.RetroBurn || pod.Y - sampleNext.SurfaceY < hStop + 6.0f; + + if (lowOverNextRoof && + !pod.AllowFlatRoofLanding && sampleNext.IsBuildingRoof && - (!sampleNow.IsBuildingRoof || sampleNext.SurfaceY > surfaceNow + 0.25f)) + !sampleNow.IsBuildingRoof) { return true; }