Skip to content

Commit

Permalink
Planner ground station band filtering (#30)
Browse files Browse the repository at this point in the history
* Test planner filtering

* Try making a function check?

* Oops

* Filter ground stations bettter

* tabs and spaces
  • Loading branch information
Capkirk123 authored Aug 11, 2024
1 parent dd120c2 commit 2c3e39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RealAntennasProject/PlannerGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ private bool RenderPanel(SelectionMode mode, ref RealAntenna antenna, ref Vector
}
foreach (Network.RACommNetHome home in homes)
foreach (RealAntenna ra in home.Comm.RAAntennaList)
if (GUILayout.Button($"{home.displaynodeName} {ra.ToStringShort()}", buttonStyle))
if (peer.Compatible(ra) && GUILayout.Button($"{home.displaynodeName} {ra.ToStringShort()}", buttonStyle))
{
antenna = ra;
res = true;
Expand Down

0 comments on commit 2c3e39e

Please sign in to comment.