File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -671,7 +671,7 @@ func (e *Engine) processGameEvent(event *GameEvent) error {
671
671
672
672
e .State .PlacementPos = e .BallPlacementPos ()
673
673
674
- if e .State .GameState () != GameStateHalted && ! event .IsContinued () && ! event .IsSecondary () {
674
+ if e .State .GameState () != GameStateHalted && ! event .IsSkipped () && ! event .IsSecondary () {
675
675
teamInFavor := event .ByTeam ().Opposite ()
676
676
if e .State .PlacementPos != nil {
677
677
if e .State .TeamState [teamInFavor ].CanPlaceBall {
Original file line number Diff line number Diff line change @@ -190,8 +190,8 @@ func (e GameEvent) IsSecondary() bool {
190
190
return false
191
191
}
192
192
193
- // IsContinued checks if the game event is was continued (not stopped) based on the decision of a team
194
- func (e GameEvent ) IsContinued () bool {
193
+ // IsSkipped checks if the game event is was continued (not stopped) based on the decision of a team
194
+ func (e GameEvent ) IsSkipped () bool {
195
195
switch e .Type {
196
196
case GameEventBotPushedBotSkipped ,
197
197
GameEventBotCrashUniqueSkipped :
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ func (e *Engine) BallPlacementPos() *Location {
12
12
return nil
13
13
}
14
14
event := e .State .GameEvents [0 ]
15
- if event .IsSecondary () || event .IsContinued () {
15
+ if event .IsSecondary () || event .IsSkipped () {
16
16
return nil
17
17
}
18
18
You can’t perform that action at this time.
0 commit comments