Skip to content

Commit 7fc0a81

Browse files
committed
Do not set a placement pos for possible goals
1 parent 4511cc5 commit 7fc0a81

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/app/statemachine/placementPos.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@ func (s *BallPlacementPosDeterminer) Location() *geom.Vector2 {
4242
}
4343
return s.validateLocation(nil)
4444
case state.GameEvent_POSSIBLE_GOAL:
45-
if s.Event.GetPossibleGoal().Location != nil {
46-
location := s.Event.GetPossibleGoal().Location
47-
return s.ballPlacementLocationGoalLine(location)
48-
}
49-
return s.validateLocation(nil)
45+
return nil
5046
case state.GameEvent_AIMLESS_KICK:
5147
return s.validateLocation(s.Event.GetAimlessKick().KickLocation)
5248
case state.GameEvent_GOAL:

0 commit comments

Comments
 (0)