File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
internal/app/statemachine Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,8 @@ func (s *StateMachine) processChangeContinue(newState *state.State) (changes []*
24
24
} else if newState .NextCommand != nil {
25
25
log .Printf ("Continue with next command: %v" , * newState .NextCommand )
26
26
changes = append (changes , s .newCommandChange (newState .NextCommand ))
27
- } else if * newState .Command .Type != state .Command_STOP {
27
+ } else if * newState .Command .Type != state .Command_HALT {
28
28
log .Println ("Halting the game as there is no known next command to continue with" )
29
- // halt the game, if not in STOP.
30
- // Rational: After ball placement and no next command, halt the game to indicate that manual action is required
31
- // If in STOP, that was most likely triggered manually already and a suddenly halted game might be confusing and not intended
32
29
changes = append (changes , s .newCommandChange (state .NewCommandNeutral (state .Command_HALT )))
33
30
}
34
31
return
You can’t perform that action at this time.
0 commit comments