Target SEAD strikes at observed radar contacts
Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
@@ -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) };
|
||||
|
||||
Reference in New Issue
Block a user