Target SEAD strikes at observed radar contacts

Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
2026-11-02 23:58:35 +03:00
parent e38ca0d9ab
commit ce76f20074
2 changed files with 29 additions and 6 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ impl Sim {
continue;
}
// Only those not yet sent at a unit.
if self.sams.iter().any(|s| s.pos.distance(d.target - d.err) < 6.0) {
if known.iter().any(|(_, pos)| pos.distance(d.target - d.err) < 6.0) {
continue;
}
let to = if !ew.is_empty() { pick(n, &ew) } else { pick(n, &known) };