Skip to content

Commit

Permalink
Entering empty waypoints for F/A-18C
Browse files Browse the repository at this point in the history
  • Loading branch information
DrususAvantar committed Jan 23, 2024
1 parent eb42ba0 commit 57ca784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dcs-dtc/New/Presets/V2/Base/V1V2/FA18V1V2Loader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ private static void CopyWaypoints(FA18ConfigurationV1 v1, FA18ConfigurationV2 v2
private static Waypoint CopyWaypoint(V1.Aircrafts.FA18.Waypoint w)
{
var coord = Coordinate.FromString(w.Latitude, w.Longitude);
if(coord == null) return null;
var latlon = coord.ToHornetPreciseSteerpointFormat();
var wpt = new Waypoint()
{
Expand Down
2 changes: 1 addition & 1 deletion dcs-dtc/New/Uploader/Aircrafts/FA18/FA18Uploader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void Execute()

private void Coord(string coord)
{
var (direction, (numbers, _)) = coord.Replace("°", "").Replace("’", "").Replace("”", "").Split(' ');
var (direction, (numbers, _)) = coord.Replace("°", "").Replace("’", "").Replace("”", "").Replace(",",".").Split(' ');
var (coordDegMin, (coordDecimal, _)) = numbers.Split('.');
if (coordDegMin.StartsWith('0')) coordDegMin = coordDegMin.Substring(1);
if (coordDecimal.Length == 1)
Expand Down

0 comments on commit 57ca784

Please sign in to comment.