This commit is contained in:
Maciej Caderek
2022-03-24 22:45:36 +01:00
parent 14577cfc9c
commit 999fed11ad

View File

@@ -102,6 +102,9 @@ class Player {
const position = this.getPosition(); const position = this.getPosition();
await this.board.frame(position, this.game.header);
this.board.render();
if (this.ply > 0 && state.boardConfig.sounds) { if (this.ply > 0 && state.boardConfig.sounds) {
if (position.mate) { if (position.mate) {
sfx.snap.play(); sfx.snap.play();
@@ -113,9 +116,6 @@ class Player {
sfx.move.play(); sfx.move.play();
} }
} }
await this.board.frame(position, this.game.header);
this.board.render();
} }
async first() { async first() {