X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=42fe1897150a22dc6696581d2b4a704b34df6c6b;hp=c52f94c8a1193c70c494f3cf1e19f520657165db;hb=8b405c81769b822dd2d0db28c613da259f68c071;hpb=2ceec0ec299f93627fbe9a4e278cdb0d943e2b63 diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index c52f94c8..42fe1897 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -393,6 +393,7 @@ export default { this.vr.re_init(this.moves[index].fen); this.cursor = index; this.lastMove = this.moves[index]; + this.incheck = this.vr.getCheckSquares(this.vr.turn); }, gotoBegin: function() { if (this.cursor == -1) return; @@ -404,6 +405,7 @@ export default { this.cursor = -1; this.lastMove = null; } + this.incheck = this.vr.getCheckSquares(this.vr.turn); }, gotoEnd: function() { if (this.cursor == this.moves.length - 1) return;