From e0f26496c4e0e335055ea63d6cba75167ed7f77e Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Thu, 9 Apr 2020 16:47:33 +0200 Subject: [PATCH] Fix enter/exit analyze mode in the middle of a multi-move --- client/src/components/BaseGame.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 3d8e7eb9..7424aa40 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; -- 2.44.0