From 4a82dadb64b0a63b909e50cfeb5283609cbaa466 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Fri, 19 Jun 2020 16:05:14 +0200 Subject: [PATCH] Fix randomness when >= 2 rematch games --- client/src/views/Game.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index d6667f71..6570cb78 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -1056,6 +1056,7 @@ console.log(data.data); let gameInfo = { id: getRandString(), //ignored if corr fen: V.GenRandInitFen(this.game.randomness), + randomness: this.game.randomness, players: [this.game.players[1], this.game.players[0]], vid: this.game.vid, cadence: this.game.cadence @@ -1077,7 +1078,6 @@ console.log(data.data); "/games", "POST", { - // cid is useful to delete the challenge: data: { gameInfo: gameInfo }, success: (response) => { gameInfo.id = response.gameId; -- 2.44.0