diff --git a/ExtLibs/Maps/WPOverlay.cs b/ExtLibs/Maps/WPOverlay.cs index 9948b90a46..fb4fc36daf 100644 --- a/ExtLibs/Maps/WPOverlay.cs +++ b/ExtLibs/Maps/WPOverlay.cs @@ -72,7 +72,7 @@ public void CreateOverlay(PointLatLngAlt home, List missionitems, do || command == (ushort) MAVLink.MAV_CMD.DO_SET_ROI || command == (ushort)MAVLink.MAV_CMD.DO_LAND_START) { // land can be 0,0 or a lat,lng - if (command == (ushort) MAVLink.MAV_CMD.LAND && item.lat == 0 && item.lng == 0) + if ((command == (ushort)MAVLink.MAV_CMD.LAND || command == (ushort)MAVLink.MAV_CMD.VTOL_LAND) && item.lat == 0 && item.lng == 0) { continue; } @@ -96,7 +96,7 @@ public void CreateOverlay(PointLatLngAlt home, List missionitems, do addpolygonmarker((a + 1).ToString(), item.lng, item.lat, item.alt * altunitmultiplier, null, wpradius); } - else if (command == (ushort) MAVLink.MAV_CMD.LAND && item.lat != 0 && item.lng != 0) + else if ((command == (ushort) MAVLink.MAV_CMD.LAND || command == (ushort) MAVLink.MAV_CMD.VTOL_LAND) && item.lat != 0 && item.lng != 0) { pointlist.Add(new PointLatLngAlt(item.lat, item.lng, item.alt + gethomealt((MAVLink.MAV_FRAME) item.frame, item.lat, item.lng),