dont apply changes already done
This commit is contained in:
parent
235760c831
commit
d399f2b65f
1 changed files with 2 additions and 0 deletions
|
|
@ -33,6 +33,8 @@ function connect(gameId, clientId) {
|
|||
const msgClientSeq = msg[2]
|
||||
if (msgClientId === clientId && events[msgClientSeq]) {
|
||||
delete events[msgClientSeq]
|
||||
// we have already calculated that change locally. probably
|
||||
return
|
||||
}
|
||||
changesCallback(msg)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue