Skip to content

Commit 50fc62d

Browse files
committed
Bugfix: Calculate readyToContinue radius correctly
1 parent 610c7f1 commit 50fc62d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/app/engine/process_continue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (e *Engine) posInsideGoal(pos *geom.Vector2) bool {
129129
}
130130

131131
func (e *Engine) readyToContinueFromStop() bool {
132-
radius := e.gameConfig.DistanceToBallInStop + robotRadius + distanceThreshold
132+
radius := e.gameConfig.DistanceToBallInStop + robotRadius - distanceThreshold
133133
if e.gcState.TrackerStateGc.Ball == nil ||
134134
!e.ballSteady() ||
135135
e.robotsInsideRadius(e.gcState.TrackerStateGc.Robots, e.gcState.TrackerStateGc.Ball.Pos.ToVector2(), radius) {

0 commit comments

Comments
 (0)