From: Benjamin Auder Date: Fri, 19 Jun 2020 14:05:14 +0000 (+0200) Subject: Fix randomness when >= 2 rematch games X-Git-Url: https://git.auder.net/variants/current/doc/css/img/index.css?a=commitdiff_plain;h=4a82dadb64b0a63b909e50cfeb5283609cbaa466;p=vchess.git Fix randomness when >= 2 rematch games --- 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;