From 570562ee3cf7e40aa356a33db801ecc48ce32201 Mon Sep 17 00:00:00 2001 From: Nicolai Ommer Date: Fri, 5 Apr 2024 22:52:36 +0200 Subject: [PATCH] [#140] Fix: Do not reset currentActionTimeRemaining for normal_start --- internal/app/statemachine/change_command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/statemachine/change_command.go b/internal/app/statemachine/change_command.go index 9ff9a7dd..a7ea4d98 100644 --- a/internal/app/statemachine/change_command.go +++ b/internal/app/statemachine/change_command.go @@ -82,7 +82,7 @@ func (s *StateMachine) currentActionTimeRemainingForCommand(command state.Comman return durationpb.New(s.gameConfig.BallPlacementTime) case state.Command_DIRECT: return durationpb.New(s.gameConfig.FreeKickTimeout[division]) - case state.Command_KICKOFF, state.Command_PENALTY: + case state.Command_KICKOFF, state.Command_PENALTY, state.Command_NORMAL_START: return durationpb.New(s.gameConfig.PrepareTimeout) default: return durationpb.New(0)