From 39cbb7342fc3178b8e04043e122c39b715a8458f Mon Sep 17 00:00:00 2001 From: Tatsuya Yamaguchi Date: Fri, 6 Oct 2023 06:59:21 +0900 Subject: [PATCH] WPOverlay: change the condition for rally point --- ExtLibs/Maps/WPOverlay.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExtLibs/Maps/WPOverlay.cs b/ExtLibs/Maps/WPOverlay.cs index 33d6c9efde..9948b90a46 100644 --- a/ExtLibs/Maps/WPOverlay.cs +++ b/ExtLibs/Maps/WPOverlay.cs @@ -321,7 +321,7 @@ public void CreateOverlay(PointLatLngAlt home, List missionitems, do addpolygonmarker((a + 1).ToString(), item.lng, item.lat, null, Color.Orange, 0, MAVLink.MAV_MISSION_TYPE.FENCE); } - else if (command >= (ushort)MAVLink.MAV_CMD.RALLY_POINT) // rally + else if (command == (ushort)MAVLink.MAV_CMD.RALLY_POINT) // rally { pointlist.Add(new PointLatLngAlt(item.lat, item.lng, 0, (a + 1).ToString())); addpolygonmarker((a + 1).ToString(), item.lng, item.lat,