Do not send new-move message in analyze mode
authorBenjamin Auder <benjamin.auder@somewhere>
Mon, 6 Apr 2020 09:41:41 +0000 (11:41 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Mon, 6 Apr 2020 09:41:41 +0000 (11:41 +0200)
client/src/components/BaseGame.vue

index a0bcef0..2c133fb 100644 (file)
@@ -514,7 +514,7 @@ export default {
           this.inMultimove = false;
           this.score = computeScore();
           if (this.mode != "analyze" && !navigate) {
-            if (!noemit) {
+            if (!noemit && this.mode != "analyze") {
               // Post-processing (e.g. computer play).
               const L = this.moves.length;
               // NOTE: always emit the score, even in unfinished,