Skip to content

Commit

Permalink
version 1.6.0 for KSP 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
neuoy committed Apr 30, 2016
1 parent ea105e7 commit 862e109
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Plugin/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.5.0.0")]
[assembly: AssemblyFileVersion("1.5.0.0")]
[assembly: AssemblyVersion("1.6.0.0")]
[assembly: AssemblyFileVersion("1.6.0.0")]
6 changes: 3 additions & 3 deletions Plugin/StockAeroUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public static Vector3 SimAeroForce(Vessel _vessel, Vector3 v_wrld_vel, double al
case Part.DragModel.CUBE:
DragCubeList cubes = p.DragCubes;

DragCubeList.CubeData p_drag_data;
DragCubeList.CubeData p_drag_data = new DragCubeList.CubeData();

float drag;
if (cubes.None) // since 1.0.5, some parts don't have drag cubes (for example fuel lines and struts)
Expand All @@ -167,13 +167,13 @@ public static Vector3 SimAeroForce(Vessel _vessel, Vector3 v_wrld_vel, double al
{
try
{
p_drag_data = cubes.AddSurfaceDragDirection(-sim_dragVectorDirLocal, (float)mach);
cubes.AddSurfaceDragDirection(-sim_dragVectorDirLocal, (float)mach, ref p_drag_data);
}
catch (Exception)
{
cubes.SetDrag(sim_dragVectorDirLocal, (float)mach);
cubes.ForceUpdate(true, true);
p_drag_data = cubes.AddSurfaceDragDirection(-sim_dragVectorDirLocal, (float)mach);
cubes.AddSurfaceDragDirection(-sim_dragVectorDirLocal, (float)mach, ref p_drag_data);
//Debug.Log(String.Format("Trajectories: Caught NRE on Drag Initialization. Should be fixed now. {0}", e));
}

Expand Down
14 changes: 9 additions & 5 deletions Plugin/Trajectories.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\..\..\Jeux\KSP_1_1_0\GameData\Trajectories\Plugin\</OutputPath>
<OutputPath>..\..\..\..\Jeux\KSP_1_1_2\GameData\Trajectories\Plugin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -40,15 +40,18 @@
<ItemGroup>
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Jeux\KSP_1_1_0\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath>
<HintPath>..\..\..\..\Jeux\KSP_1_1_2\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Assembly-CSharp-firstpass, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Jeux\KSP_1_1_0\KSP_x64_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
<HintPath>..\..\..\..\Jeux\KSP_1_1_2\KSP_x64_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="KSPUtil, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Jeux\KSP_1_1_0\KSP_x64_Data\Managed\KSPUtil.dll</HintPath>
<HintPath>..\..\..\..\Jeux\KSP_1_1_2\KSP_x64_Data\Managed\KSPUtil.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -58,7 +61,8 @@
<Reference Include="System.Xml" />
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Jeux\KSP_1_1_0\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
<HintPath>..\..\..\..\Jeux\KSP_1_1_2\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Trajectories.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"NAME":"Trajectories","URL":"http://ksp-avc.cybutek.net/version.php?id=63","DOWNLOAD":"https://spacedock.info/mod/396/Trajectories","CHANGE_LOG_URL":"https://github.com/neuoy/KSPTrajectories/releases","VERSION":{"MAJOR":1,"MINOR":5,"PATCH":0,"BUILD":0},"KSP_VERSION":{"MAJOR":1,"MINOR":1,"PATCH":0)},"KSP_VERSION_MIN":{"MAJOR":1,"MINOR":1,"PATCH":0},"KSP_VERSION_MAX":{"MAJOR":1,"MINOR":1,"PATCH":1}}
{"NAME":"Trajectories","URL":"http://ksp-avc.cybutek.net/version.php?id=63","DOWNLOAD":"https://spacedock.info/mod/396/Trajectories","CHANGE_LOG_URL":"https://github.com/neuoy/KSPTrajectories/releases","VERSION":{"MAJOR":1,"MINOR":6,"PATCH":0,"BUILD":0},"KSP_VERSION":{"MAJOR":1,"MINOR":1,"PATCH":2)},"KSP_VERSION_MIN":{"MAJOR":1,"MINOR":1,"PATCH":2},"KSP_VERSION_MAX":{"MAJOR":1,"MINOR":1,"PATCH":2}}

0 comments on commit 862e109

Please sign in to comment.