Skip to content

MatchStartedChanged with ScoreUpdated acts weird #366

Answered by ysomad
ysomad asked this question in Q&A
Discussion options

You must be logged in to vote

Do not update teams if MatchStarted was already true / if MatchStarted is set to false

p.RegisterEventHandler(func(e events.MatchStartedChanged) {
              if e.OldIsStarted || !e.NewIsStarted {
                       return
             }

                p.setTeams(p.GameState())
        })

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
1 reply
@ysomad
Comment options

Comment options

You must be logged in to vote
9 replies
@markus-wa
Comment options

@markus-wa
Comment options

@ysomad
Comment options

@ysomad
Comment options

@markus-wa
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ysomad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants