File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -932,7 +932,7 @@ func (e *Engine) processGameEvent(event *GameEvent) error {
932
932
e .SendCommand (CommandHalt , "" )
933
933
} else if ! event .IsSkipped () && ! event .IsSecondary () && ! e .State .Command .IsPrepare () {
934
934
e .placeBall (event )
935
- } else if e .GcState .AutoContinue && event .IsContinueGame ( ) {
935
+ } else if event . Type == GameEventPlacementSucceeded || ( e .GcState .AutoContinue && event .Type == GameEventPrepared ) {
936
936
e .Continue ()
937
937
} else {
938
938
log .Printf ("No change in game with event %v" , event )
Original file line number Diff line number Diff line change @@ -270,16 +270,6 @@ func (e GameEvent) IsSkipped() bool {
270
270
return false
271
271
}
272
272
273
- // IsContinueGame checks if the game event should trigger continuing the game based on the current primary event
274
- func (e GameEvent ) IsContinueGame () bool {
275
- switch e .Type {
276
- case GameEventPlacementSucceeded ,
277
- GameEventPrepared :
278
- return true
279
- }
280
- return false
281
- }
282
-
283
273
// ToProto converts the internal game event into a protobuf game event
284
274
func (e GameEvent ) ToProto () * refproto.GameEvent {
285
275
protoEvent := new (refproto.GameEvent )
You can’t perform that action at this time.
0 commit comments