File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -450,6 +450,7 @@ func (e *Engine) createInitialState() (s *state.State) {
450
450
}
451
451
s .NextCommand = state .NewCommand (state .Command_KICKOFF , * s .FirstKickoffTeam )
452
452
s .PlacementPos = geom .NewVector2 (0.0 , 0.0 )
453
+ s .StageTimeLeft = durationpb .New (e .gameConfig .Normal .HalfTimeDuration )
453
454
return
454
455
}
455
456
Original file line number Diff line number Diff line change @@ -44,12 +44,16 @@ func loadStageTimes(gameConfig config.Game) (s map[state.Referee_Stage]time.Dura
44
44
for stage := range state .Referee_Stage_name {
45
45
s [state .Referee_Stage (stage )] = 0
46
46
}
47
+ s [state .Referee_NORMAL_FIRST_HALF_PRE ] = gameConfig .Normal .HalfDuration
47
48
s [state .Referee_NORMAL_FIRST_HALF ] = gameConfig .Normal .HalfDuration
48
49
s [state .Referee_NORMAL_HALF_TIME ] = gameConfig .Normal .HalfTimeDuration
50
+ s [state .Referee_NORMAL_SECOND_HALF_PRE ] = gameConfig .Normal .HalfDuration
49
51
s [state .Referee_NORMAL_SECOND_HALF ] = gameConfig .Normal .HalfDuration
50
52
s [state .Referee_EXTRA_TIME_BREAK ] = gameConfig .Normal .BreakAfter
53
+ s [state .Referee_EXTRA_FIRST_HALF_PRE ] = gameConfig .Overtime .HalfDuration
51
54
s [state .Referee_EXTRA_FIRST_HALF ] = gameConfig .Overtime .HalfDuration
52
55
s [state .Referee_EXTRA_HALF_TIME ] = gameConfig .Overtime .HalfTimeDuration
56
+ s [state .Referee_EXTRA_SECOND_HALF_PRE ] = gameConfig .Overtime .HalfDuration
53
57
s [state .Referee_EXTRA_SECOND_HALF ] = gameConfig .Overtime .HalfDuration
54
58
s [state .Referee_PENALTY_SHOOTOUT_BREAK ] = gameConfig .Overtime .BreakAfter
55
59
return
You can’t perform that action at this time.
0 commit comments