From c94fc46f349784dfb7f449ece4147a381f62405b Mon Sep 17 00:00:00 2001 From: ntr Date: Fri, 19 Jul 2019 18:35:31 +1000 Subject: [PATCH] pow --- client/src/events.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/events.jsx b/client/src/events.jsx index 044e7372..3843ea0c 100644 --- a/client/src/events.jsx +++ b/client/src/events.jsx @@ -71,14 +71,14 @@ function registerEvents(store) { }, 3000); }, err => { if (err) return console.error(err); + // clear animation state store.dispatch(actions.setAnimSource(null)); store.dispatch(actions.setAnimTarget(null)); store.dispatch(actions.setAnimating(false)); - // stop skipping resolutions - store.dispatch(actions.setSkip(false)); - - ws.sendGameState(currentGame.id); + // set the game state so resolutions don't fire twice + store.dispatch(actions.setGame(game)); + ws.sendGameState(game.id); return true; }); }