Skip to content

Commit e023a19

Browse files
committed
Fix: ContinueAction for NORMAL_START should consider continuation issues
1 parent 1d786f1 commit e023a19

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

internal/app/engine/process_continue_next_action.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ func (e *Engine) nextActions() (actions []*ContinueAction) {
5353
}
5454

5555
if e.currentState.Command.IsPrepare() {
56-
actions = append(actions, createContinueAction(
57-
ContinueAction_NORMAL_START,
58-
state.Team_UNKNOWN,
59-
ContinueAction_READY_AUTO,
60-
))
56+
actions = append(actions, e.createNextCommandContinueAction(ContinueAction_NORMAL_START, state.Team_UNKNOWN))
6157
actions = append(actions, createContinueAction(
6258
ContinueAction_STOP_GAME,
6359
state.Team_UNKNOWN,

internal/app/engine/process_continue_next_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (e *Engine) createNextCommandContinueAction(
3737
if preparationTimeLeft > 0 {
3838
actionState = ContinueAction_WAITING
3939
continuationIssues = append(continuationIssues, fmt.Sprintf("%.0f s left for preparation", preparationTimeLeft.Seconds()))
40-
} else if actionType == ContinueAction_NEXT_COMMAND {
40+
} else if actionType == ContinueAction_NEXT_COMMAND || actionType == ContinueAction_NORMAL_START {
4141
actionState = ContinueAction_READY_AUTO
4242
} else {
4343
actionState = ContinueAction_READY_MANUAL

0 commit comments

Comments
 (0)