From 6a75fc5839c15951a6afa8863c4297970d6b1a5c Mon Sep 17 00:00:00 2001 From: Nicolai Ommer Date: Wed, 23 Jun 2021 07:24:39 +0200 Subject: [PATCH] Also consider red cards for detecting divA/B --- internal/simctl/handler_geometry.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/simctl/handler_geometry.go b/internal/simctl/handler_geometry.go index c88a95b..97017ed 100644 --- a/internal/simctl/handler_geometry.go +++ b/internal/simctl/handler_geometry.go @@ -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