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; }