Skip to content

Commit 57ca784

Browse files
committed
Entering empty waypoints for F/A-18C
1 parent eb42ba0 commit 57ca784

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dcs-dtc/New/Presets/V2/Base/V1V2/FA18V1V2Loader.cs

+1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ private static void CopyWaypoints(FA18ConfigurationV1 v1, FA18ConfigurationV2 v2
196196
private static Waypoint CopyWaypoint(V1.Aircrafts.FA18.Waypoint w)
197197
{
198198
var coord = Coordinate.FromString(w.Latitude, w.Longitude);
199+
if(coord == null) return null;
199200
var latlon = coord.ToHornetPreciseSteerpointFormat();
200201
var wpt = new Waypoint()
201202
{

dcs-dtc/New/Uploader/Aircrafts/FA18/FA18Uploader.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void Execute()
2828

2929
private void Coord(string coord)
3030
{
31-
var (direction, (numbers, _)) = coord.Replace("°", "").Replace("’", "").Replace("”", "").Split(' ');
31+
var (direction, (numbers, _)) = coord.Replace("°", "").Replace("’", "").Replace("”", "").Replace(",",".").Split(' ');
3232
var (coordDegMin, (coordDecimal, _)) = numbers.Split('.');
3333
if (coordDegMin.StartsWith('0')) coordDegMin = coordDegMin.Substring(1);
3434
if (coordDecimal.Length == 1)

0 commit comments

Comments
 (0)