File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -431,8 +431,6 @@ func (e *Engine) processChange(change *statemachine.Change) (newChanges []*state
431
431
432
432
e .currentState = entry .State .Clone ()
433
433
434
- e .postProcessChange (entry )
435
-
436
434
if err := e .stateStore .Add (entry ); err != nil {
437
435
log .Println ("Could not add new state to store: " , err )
438
436
}
@@ -473,18 +471,10 @@ func (e *Engine) createInitialState() (s *state.State) {
473
471
s .NextCommand = state .NewCommand (state .Command_KICKOFF , * s .FirstKickoffTeam )
474
472
s .PlacementPos = geom .NewVector2 (0.0 , 0.0 )
475
473
s .StageTimeLeft = durationpb .New (e .gameConfig .Normal .HalfTimeDuration )
474
+ s .MatchTimeStart = timestamppb .New (e .timeProvider ())
476
475
return
477
476
}
478
477
479
- // postProcessChange performs synchronous post processing steps
480
- func (e * Engine ) postProcessChange (entry * statemachine.StateChange ) {
481
- change := entry .Change
482
- if change .GetChangeStageChange () != nil &&
483
- * change .GetChangeStageChange ().NewStage == state .Referee_NORMAL_FIRST_HALF {
484
- e .currentState .MatchTimeStart = timestamppb .New (e .timeProvider ())
485
- }
486
- }
487
-
488
478
// GetConfig returns a deep copy of the current config
489
479
func (e * Engine ) GetConfig () * Config {
490
480
cfg := Config {}
You can’t perform that action at this time.
0 commit comments