Reset last move when cancelling half move
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 9 Apr 2020 18:45:19 +0000 (20:45 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 9 Apr 2020 18:45:19 +0000 (20:45 +0200)
client/src/components/BaseGame.vue

index 1840882..e99c194 100644 (file)
@@ -592,6 +592,8 @@ export default {
       if (this.inMultimove) {
         this.cancelCurrentMultimove();
         this.incheck = this.vr.getCheckSquares();
+        if (this.cursor >= 0) this.lastMove = this.moves[this.cursor];
+        else this.lastMove = null;
       } else {
         if (!move) {
           const minCursor =