Fix highlighting checks when navigating
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 18 Mar 2020 13:34:03 +0000 (14:34 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 18 Mar 2020 13:34:03 +0000 (14:34 +0100)
client/src/components/BaseGame.vue

index 0372321..c4ffe5c 100644 (file)
@@ -393,6 +393,7 @@ export default {
         for (let i=0; i < move.length; i++) this.vr.play(move[i]);
         if (!light) {
           this.lastMove = move[move.length-1];
+          this.incheck = this.vr.getCheckSquares(this.vr.turn);
           computeScore();
           this.emitFenIfAnalyze();
         }