X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FComputerGame.vue;h=5ecc1a65fecaf9f1356617f29ebccc223e44eeb4;hb=3d52a549d2be1d9644ad7b43a4a2b4aa988b6bdb;hp=238f109271903051aae399aea11e5cb15faf6500;hpb=13aa5a44fe3da4eac5ab04f0120ccbd5927f91c1;p=vchess.git diff --git a/client/src/components/ComputerGame.vue b/client/src/components/ComputerGame.vue index 238f1092..5ecc1a65 100644 --- a/client/src/components/ComputerGame.vue +++ b/client/src/components/ComputerGame.vue @@ -100,7 +100,7 @@ export default { this.compWorker.postMessage(["newmove",move]); // subTurn condition for Marseille (and Avalanche) rules if ((!this.vr.subTurn || this.vr.subTurn <= 1) - && (this.mode == "auto" || this.vr.turn != this.mycolor)) + && (this.mode == "auto" || this.vr.turn != this.gameInfo.mycolor)) { this.playComputerMove(); }