From a5e965c1d5e83f5463e49245b5f977be484b1476 Mon Sep 17 00:00:00 2001 From: Ryan Caskey Date: Thu, 1 Jun 2017 15:38:20 +0000 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20like=20this,=20but=20it=20fixes?= =?UTF-8?q?=20the=20issues=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/ProcAdapter.cs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Source/ProcAdapter.cs b/Source/ProcAdapter.cs index 1c3f788..0963b1b 100644 --- a/Source/ProcAdapter.cs +++ b/Source/ProcAdapter.cs @@ -58,6 +58,7 @@ public virtual void checkTweakables() public virtual void FixedUpdate() { checkTweakables(); + changed = true; if (changed) updateShape(); justLoaded=false; @@ -122,14 +123,15 @@ public override void OnStart(StartState state) if (state==StartState.None) return; changed=true; - } - - - public override void OnLoad(ConfigNode cfg) + } + + public override void OnLoad(ConfigNode cfg) { base.OnLoad(cfg); justLoaded=true; + changed = true; } + } @@ -424,8 +426,8 @@ public override void FixedUpdate() if (isShipModified) { - isShipModified = false; + isShipModified = false; // remove engine fairing if there is any from topmost node if (!engineFairingRemoved) { @@ -512,9 +514,6 @@ public override void FixedUpdate() } } - - - } } }