Skip to content

Commit

Permalink
Fix #1668 Check sound doesn't work in analysis board
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Nov 15, 2024
1 parent 82d5c15 commit 9317de0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/analysisCtrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,8 @@ export class AnalysisController extends GameController {
},
});

if (msg.check) sound.check();

if (this.variant.ui.showCheckCounters) {
this.updateCheckCounters(this.fullfen);
}
Expand Down
1 change: 1 addition & 0 deletions client/gameCtrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ export abstract class GameController extends ChessgroundController implements Ch

if (ply === this.ply + 1) {
sound.moveSound(this.variant, capture);
if (step.check) sound.check();
}

this.ply = ply
Expand Down

0 comments on commit 9317de0

Please sign in to comment.