must share lane to pass baton
This commit is contained in:
parent
81e0dbe8d7
commit
ca3b673b41
|
@ -108,7 +108,7 @@ const (
|
|||
func maybePassBaton(t *Team) {
|
||||
for i, b := range t.Bots {
|
||||
h := t.Baton.Holder
|
||||
if h.id >= b.id {
|
||||
if h.id >= b.id || h.Lane != b.Lane {
|
||||
continue
|
||||
}
|
||||
if abs(b.Pos-h.Pos) <= passDistance {
|
||||
|
|
Loading…
Reference in New Issue