Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCSViews: If the delay of WAYPOINT is set to less than 0, set it to 0 #2654

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion GCSViews/FlightPlanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2979,7 +2979,16 @@ private Locationwp DataViewtoLocationwp(int a)
false);
}

temp.p1 = float.Parse(Commands.Rows[a].Cells[Param1.Index].Value.ToString());
if (Commands.Rows[a].Cells[Command.Index].Value.Equals("WAYPOINT"))
{
temp.p1 = float.Parse(Commands.Rows[a].Cells[Param1.Index].Value.ToString());
if (temp.p1 < 0)
{
temp.p1 = 0;
DataGridViewTextBoxCell cell = Commands.Rows[a].Cells[Param1.Index] as DataGridViewTextBoxCell;
cell.Value = temp.p1;
}
}

temp.alt =
(float)
Expand Down