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 {
932932 e .SendCommand (CommandHalt , "" )
933933 } else if ! event .IsSkipped () && ! event .IsSecondary () && ! e .State .Command .IsPrepare () {
934934 e .placeBall (event )
935- } else if e .GcState .AutoContinue && event .IsContinueGame ( ) {
935+ } else if event . Type == GameEventPlacementSucceeded || ( e .GcState .AutoContinue && event .Type == GameEventPrepared ) {
936936 e .Continue ()
937937 } else {
938938 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 {
270270 return false
271271}
272272
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-
283273// ToProto converts the internal game event into a protobuf game event
284274func (e GameEvent ) ToProto () * refproto.GameEvent {
285275 protoEvent := new (refproto.GameEvent )
You can’t perform that action at this time.
0 commit comments