X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=62611393b0b961dccf434ddd6a7e9ffe7809794b;hp=919a7ebca986bd7edd2dd87ed5a5ed713863539d;hb=a6363ac14efd09ad3c08c929a06af462995201bc;hpb=90df90bca1a993930a0e1a07a1b4990dd538c6e2 diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 919a7ebc..62611393 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -753,6 +753,8 @@ export default { // Got opponent infos about last move this.gotLastate = true; this.lastate = data.data; + if (this.lastate.movesCount > this.gotMoveIdx) + this.gotMoveIdx = this.lastate.movesCount; if (this.game.rendered) // Game is rendered (Board component) this.processLastate(); @@ -760,6 +762,12 @@ export default { break; } case "newmove": { + +// DEBUG: +console.log("Receive move"); +console.log(data.data); +//moveslist not updated when receiving a move? (see in baseGame) + const movePlus = data.data; const movesCount = this.game.moves.length; if (movePlus.index > movesCount) {