X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=a1af478f7740ab1cf1791c867f3a9872791e33e6;hb=0e912cb2584b4c18c0b3a8dec32b86fc8780bc66;hp=3d8e7eb9d26465dab61785ecbfdd6e0f919b4ac7;hpb=c1e3a8fd50e2ea1cf6652478744e354e812ec1bd;p=vchess.git diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 3d8e7eb9..a1af478f 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -258,8 +258,11 @@ export default { else this.lastMove = null; }, toggleAnalyze: function() { + // Autoplay has priority: + if (this.autoplay) return; if (this.mode != "analyze") { // Enter analyze mode: + if (this.inMultimove) this.cancelCurrentMultimove(); this.gameMode = this.mode; //was not 'analyze' this.mode = "analyze"; this.gameCursor = this.cursor; @@ -278,6 +281,7 @@ export default { fen = mv[mv.length-1].fen; } this.vr = new V(fen); + this.inMultimove = false; //in case of this.incheck = this.vr.getCheckSquares(); if (this.cursor >= 0) this.lastMove = this.moves[this.cursor]; else this.lastMove = null;