This commit is contained in:
ntr 2019-07-19 18:35:31 +10:00
parent 52b42b772a
commit c94fc46f34

View File

@ -71,14 +71,14 @@ function registerEvents(store) {
}, 3000); }, 3000);
}, err => { }, err => {
if (err) return console.error(err); if (err) return console.error(err);
// clear animation state
store.dispatch(actions.setAnimSource(null)); store.dispatch(actions.setAnimSource(null));
store.dispatch(actions.setAnimTarget(null)); store.dispatch(actions.setAnimTarget(null));
store.dispatch(actions.setAnimating(false)); store.dispatch(actions.setAnimating(false));
// stop skipping resolutions // set the game state so resolutions don't fire twice
store.dispatch(actions.setSkip(false)); store.dispatch(actions.setGame(game));
ws.sendGameState(game.id);
ws.sendGameState(currentGame.id);
return true; return true;
}); });
} }