Skip to content

Commit

Permalink
Merge pull request #86 from dkavolis/1.9
Browse files Browse the repository at this point in the history
KSP 1.9
  • Loading branch information
dkavolis authored Feb 22, 2020
2 parents 2cf406c + 64dca21 commit ddd7e92
Show file tree
Hide file tree
Showing 104 changed files with 670 additions and 990 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<KSP_DIR_BUILD>C:\Zaidimai\KSP 1.8.0\</KSP_DIR_BUILD>
<KSP_DIR_BUILD>C:\Zaidimai\KSP 1.9.0\</KSP_DIR_BUILD>
<PostBuildCommand>
cd "$(SolutionDir)""
python -m buildtools postbuild -f "$(SolutionDir)config.json" -c "$(Configuration)" -t</PostBuildCommand>
Expand Down
237 changes: 0 additions & 237 deletions FerramAerospaceResearch/CompatibilityChecker.cs

This file was deleted.

2 changes: 1 addition & 1 deletion FerramAerospaceResearch/FARAPI.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Ferram Aerospace Research v0.15.11.3 "Mach"
Ferram Aerospace Research v0.15.11.4 "Mach"
=========================
Aerodynamics model for Kerbal Space Program
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Ferram Aerospace Research v0.15.11.3 "Mach"
Ferram Aerospace Research v0.15.11.4 "Mach"
=========================
Aerodynamics model for Kerbal Space Program
Expand Down
7 changes: 3 additions & 4 deletions FerramAerospaceResearch/FARAeroComponents/FARAeroSection.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Ferram Aerospace Research v0.15.11.3 "Mach"
Ferram Aerospace Research v0.15.11.4 "Mach"
=========================
Aerodynamics model for Kerbal Space Program
Expand Down Expand Up @@ -437,13 +437,12 @@ IForceContext forceContext

if (velLocal.sqrMagnitude > 0.001f)
torqueVector -= dampingMoment * nonAxialAngLocalVel +
rollDampingMoment *
axialAngLocalVel *
axialAngLocalVel.magnitude /
(rollDampingMoment * axialAngLocalVel.magnitude) /
velLocal.sqrMagnitude;
else
torqueVector -= dampingMoment * nonAxialAngLocalVel +
rollDampingMoment * axialAngLocalVel * axialAngLocalVel.magnitude / 0.001f;
axialAngLocalVel * (rollDampingMoment * axialAngLocalVel.magnitude) / 0.001f;

forceVector *= data.dragFactor;
torqueVector *= data.dragFactor;
Expand Down
8 changes: 1 addition & 7 deletions FerramAerospaceResearch/FARAeroComponents/FARVesselAero.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Ferram Aerospace Research v0.15.11.3 "Mach"
Ferram Aerospace Research v0.15.11.4 "Mach"
=========================
Aerodynamics model for Kerbal Space Program
Expand Down Expand Up @@ -97,12 +97,6 @@ protected override void OnStart()
FARLogger.Info("FARVesselAero on " + vessel.name + " reporting startup");
base.OnStart();

if (!CompatibilityChecker.IsAllCompatible())
{
enabled = false;
return;
}

if (!HighLogic.LoadedSceneIsFlight)
{
enabled = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Ferram Aerospace Research v0.15.11.3 "Mach"
Ferram Aerospace Research v0.15.11.4 "Mach"
=========================
Copyright 2019, Benjamin Chung, aka BenChung
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Ferram Aerospace Research v0.15.11.3 "Mach"
Ferram Aerospace Research v0.15.11.4 "Mach"
=========================
Aerodynamics model for Kerbal Space Program
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Ferram Aerospace Research v0.15.11.3 "Mach"
Ferram Aerospace Research v0.15.11.4 "Mach"
=========================
Copyright 2019, Benjamin Chung, aka BenChung
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Ferram Aerospace Research v0.15.11.3 "Mach"
Ferram Aerospace Research v0.15.11.4 "Mach"
=========================
Aerodynamics model for Kerbal Space Program
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Ferram Aerospace Research v0.15.11.3 "Mach"
Ferram Aerospace Research v0.15.11.4 "Mach"
=========================
Aerodynamics model for Kerbal Space Program
Expand Down
8 changes: 4 additions & 4 deletions FerramAerospaceResearch/FARAeroUtil.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Ferram Aerospace Research v0.15.11.3 "Mach"
Ferram Aerospace Research v0.15.11.4 "Mach"
=========================
Aerodynamics model for Kerbal Space Program
Expand Down Expand Up @@ -212,17 +212,17 @@ public static FloatCurve PrandtlMeyerAngle
// ReSharper disable once UnusedMember.Global
public static List<FARWingAerodynamicModel> CurEditorWings
{
get { return curEditorWingCache ?? (curEditorWingCache = ListEditorWings()); }
get { return curEditorWingCache ??= ListEditorWings(); }
}

public static List<Part> CurEditorParts
{
get { return CurEditorPartsCache ?? (CurEditorPartsCache = ListEditorParts(false)); }
get { return CurEditorPartsCache ??= ListEditorParts(false); }
}

public static List<Part> AllEditorParts
{
get { return AllEditorPartsCache ?? (AllEditorPartsCache = ListEditorParts(true)); }
get { return AllEditorPartsCache ??= ListEditorParts(true); }
}

public static int RaycastMask
Expand Down
11 changes: 1 addition & 10 deletions FerramAerospaceResearch/FARDebugAndSettings.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Ferram Aerospace Research v0.15.11.3 "Mach"
Ferram Aerospace Research v0.15.11.4 "Mach"
=========================
Aerodynamics model for Kerbal Space Program
Expand Down Expand Up @@ -101,12 +101,6 @@ private void Awake()

private void Start()
{
if (!CompatibilityChecker.IsAllCompatible())
{
enabled = false;
return;
}

FARAeroSection.GenerateCrossFlowDragCurve();
FARAeroStress.LoadStressTemplates();
FARAeroUtil.LoadAeroDataFromConfig();
Expand Down Expand Up @@ -621,9 +615,6 @@ public static void SaveConfigs(ConfigNode node)

private void OnDestroy()
{
if (!CompatibilityChecker.IsAllCompatible())
return;

GameEvents.onGameSceneSwitchRequested.Remove(OnSceneChange);

FARDebugButtonBlizzy?.Destroy();
Expand Down
Loading

0 comments on commit ddd7e92

Please sign in to comment.