Skip to content

Commit

Permalink
- Fix AH64 TSD doesn't go into SHOW page
Browse files Browse the repository at this point in the history
  • Loading branch information
FalcoGer committed May 22, 2024
1 parent 2669855 commit 839d65d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CoordinateConverter/DCS/Aircraft/AH64/AH64TSDOptionData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,8 @@ public List<DCSCommand> GenerateCommands(bool isPilot)
EPhase currentPhase = startingCondition.Phase;
int mfd = isPilot ? (int)AH64.EDeviceCode.PLT_RMFD : (int)AH64.EDeviceCode.CPG_RMFD;

List<DCSCommand> commands = new List<DCSCommand>()
var commands = new List<DCSCommand>()
// var commands = new DebugCommandList()
{
new DCSCommand(mfd, (int)AH64.EKeyCode.MFD_TSD)
};
Expand Down Expand Up @@ -1331,6 +1332,9 @@ public List<DCSCommand> GenerateCommands(bool isPilot)

if (HasNavPhaseData || HasAtkPhaseData || HasVisData)
{
// Show page
commands.Add(new DCSCommand(mfd, (int)AH64.EKeyCode.MFD_T3));

if (currentPhase == EPhase.Attack && HasNavPhaseData)
{
commands.Add(new DCSCommand(mfd, (int)AH64.EKeyCode.MFD_B2));
Expand Down
2 changes: 1 addition & 1 deletion CoordinateConverter/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace CoordinateConverter
/// <seealso cref="Form" />
public partial class MainForm : Form
{
private readonly GitHub.Version VERSION = new GitHub.Version(0, 9, 0);
private readonly GitHub.Version VERSION = new GitHub.Version(0, 9, 1);

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
public static readonly Color ERROR_COLOR = Color.Pink;
Expand Down
4 changes: 2 additions & 2 deletions Installer/Installer.wixproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="WixToolset.Sdk/5.0.0">
<PropertyGroup>
<DefineConstants>Version=0.9.0</DefineConstants>
<DefineConstants>Version=0.9.1</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<DefineConstants>Version=0.9.0</DefineConstants>
<DefineConstants>Version=0.9.1</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="WixToolset.Netfx.wixext" Version="5.0.0" />
Expand Down

0 comments on commit 839d65d

Please sign in to comment.