X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=612ded48241f341e33aa77eee917f594e25a2ce4;hp=471c139c14252c85c2207d17f361dee5864606da;hb=f14572c4a22425033735253eabbaa2d8dbb53d05;hpb=0234201fb338fc239d6f613c677fa932c7c3697c diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 471c139c..612ded48 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -309,6 +309,7 @@ export default { const playSubmove = (smove) => { if (!navigate) smove.notation = this.vr.getNotation(smove); this.vr.play(smove); + this.lastMove = smove; if (!navigate) { if (!this.inMultimove) { if (this.cursor < this.moves.length - 1) @@ -356,7 +357,6 @@ export default { smove.fen = this.vr.getFen(); // Is opponent in check? this.incheck = this.vr.getCheckSquares(this.vr.turn); - this.lastMove = smove; this.emitFenIfAnalyze(); this.inMultimove = false; if (!noemit) {