diff --git a/Source/DeadlyReentry.cs b/Source/DeadlyReentry.cs index c966524c..83b52c96 100644 --- a/Source/DeadlyReentry.cs +++ b/Source/DeadlyReentry.cs @@ -192,7 +192,7 @@ public void SetDamageLabel() public override void OnAwake() { base.OnAwake(); - if (!CompatibilityChecker.IsCompatible()) + if (!CompatibilityChecker.IsAllCompatible()) { isCompatible = false; return; @@ -271,7 +271,7 @@ public bool IsShielded(Vector3 direction) if (GetShieldedStateFromFAR() == true) return true; - Ray ray = new Ray(part.transform.position + direction.normalized * (1.0f+adjustCollider), direction.normalized); + Ray ray = new Ray(part.transform.position + direction.normalized * (adjustCollider), direction.normalized); RaycastHit[] hits = Physics.RaycastAll (ray, 10); foreach (RaycastHit hit in hits) { if(hit.rigidbody != null && hit.collider != part.collider && hit.collider.attachedRigidbody != part.Rigidbody) { @@ -311,7 +311,7 @@ public float ReentryHeat() { bool cut = ambient + Math.Pow(density, ReentryPhysics.densityExponent) * shockwave * 10f > part.maxTemp * ReentryPhysics.parachuteTempMult; - if (cut && (object)parachute != null) + if ((object)parachute != null) { ModuleParachute p = parachute; if (p.deploymentState == ModuleParachute.deploymentStates.DEPLOYED || p.deploymentState == ModuleParachute.deploymentStates.SEMIDEPLOYED) @@ -339,13 +339,13 @@ public void FixedUpdate () { if (!HighLogic.LoadedSceneIsFlight || !isCompatible) return; - Rigidbody rb = part.Rigidbody; + //Rigidbody rb = part.Rigidbody; deltaTime = TimeWarp.fixedDeltaTime; density = (float)(part.vessel.staticPressure * 101325 / (287.058 * (part.vessel.flightIntegrator.getExternalTemperature() + CTOK))); // calc here again, just in case. ReentryPhysics.frameDensity; // close enough - if (!rb || part.physicalSignificance == Part.PhysicalSignificance.NONE) - return; + /*if (!rb || part.physicalSignificance == Part.PhysicalSignificance.NONE) + return;*/ if (is_debugging != ReentryPhysics.debugging) { @@ -690,7 +690,7 @@ public class FixMaxTemps : MonoBehaviour { public void Start() { - if (!CompatibilityChecker.IsCompatible()) + if (!CompatibilityChecker.IsAllCompatible()) return; foreach (ConfigNode node in GameDatabase.Instance.GetConfigNodes ("REENTRY_EFFECTS")) { @@ -794,7 +794,7 @@ public static float TemperatureDelta(double density, float shockwaveK, float par public void Start() { - if (!CompatibilityChecker.IsCompatible()) + if (!CompatibilityChecker.IsAllCompatible()) { isCompatible = false; return;