Skip to content

Commit

Permalink
Also consider red cards for detecting divA/B
Browse files Browse the repository at this point in the history
  • Loading branch information
g3force committed Jun 23, 2021
1 parent 4019524 commit 6a75fc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/simctl/handler_geometry.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func (r *GeometryHandler) handleGeometry() {
return
}

maxBots := int(*r.c.lastRefereeMsg.Yellow.MaxAllowedBots) + len(r.c.lastRefereeMsg.Yellow.YellowCardTimes)
maxBots := int(*r.c.lastRefereeMsg.Yellow.MaxAllowedBots) +
len(r.c.lastRefereeMsg.Yellow.YellowCardTimes) +
int(*r.c.lastRefereeMsg.Yellow.RedCards)
var geometry *vision.SSL_GeometryData
if maxBots == 6 {
geometry = r.geometryDivB
Expand Down

0 comments on commit 6a75fc5

Please sign in to comment.