Fix bugs.
This commit is contained in:
parent
0b84841768
commit
55ef06f868
3 changed files with 41 additions and 4 deletions
|
|
@ -88,10 +88,10 @@ impl ConflictAvoidance {
|
|||
dir: problem.end[i].1,
|
||||
});
|
||||
|
||||
p.push(PathField::Belt {
|
||||
pos: problem.end[i].0,
|
||||
dir: problem.end[i].1,
|
||||
});
|
||||
// p.push(PathField::Belt {
|
||||
// pos: problem.end[i].0,
|
||||
// dir: problem.end[i].1,
|
||||
// });
|
||||
|
||||
belts.push(p);
|
||||
}
|
||||
|
|
@ -370,6 +370,10 @@ impl ConflictAvoidance {
|
|||
),
|
||||
);
|
||||
candidate.extend_range(&conflicts);
|
||||
if candidate != c && !candidates.iter().any(|c| c == &candidate) {
|
||||
candidates.push(candidate);
|
||||
}
|
||||
// dbg!(&candidates);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue