diff --git a/BahaTurret/BahaTurret.userprefs b/BahaTurret/BahaTurret.userprefs index 876058ff9..502f6fe2c 100644 --- a/BahaTurret/BahaTurret.userprefs +++ b/BahaTurret/BahaTurret.userprefs @@ -1,30 +1,18 @@  - + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + diff --git a/BahaTurret/MissileFire.cs b/BahaTurret/MissileFire.cs index 93c9f816f..f0c7afea7 100644 --- a/BahaTurret/MissileFire.cs +++ b/BahaTurret/MissileFire.cs @@ -2600,7 +2600,6 @@ void StartGuardTurretFiring() weapon.autoFireStartTime = Time.time; weapon.autoFireDuration = targetScanInterval / 2; weapon.autoRippleRate = rippleFire ? rippleRPM : 0; - } } } @@ -3037,7 +3036,7 @@ bool SmartPickWeapon(TargetInfo target, float turretRange) if(!target.isMissile && target.weaponManager.pilotAI && target.weaponManager.pilotAI.pilotEnabled) { - if (vessel.LandedOrSplashed) + if (pilotAI && pilotAI.pilotEnabled && vessel.LandedOrSplashed) return false; } diff --git a/BahaTurret/bin/Release/BahaTurret.dll b/BahaTurret/bin/Release/BahaTurret.dll index c87f3afd6..a32352f61 100644 Binary files a/BahaTurret/bin/Release/BahaTurret.dll and b/BahaTurret/bin/Release/BahaTurret.dll differ diff --git a/BahaTurret/obj/x86/Release/BahaTurret.dll b/BahaTurret/obj/x86/Release/BahaTurret.dll index c87f3afd6..a32352f61 100644 Binary files a/BahaTurret/obj/x86/Release/BahaTurret.dll and b/BahaTurret/obj/x86/Release/BahaTurret.dll differ